My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

use_example_configs 862B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. BRANCH=$(git branch 2>/dev/null | grep ^* | sed 's/\* //g')
  3. IFS=: read -r PART1 PART2 <<< "$@"
  4. [ -n "${PART2}" ] && { REPO="$PART1" ; RDIR="${PART2// /%20}" ; } \
  5. || { REPO=$BRANCH ; RDIR="${PART1// /%20}" ; }
  6. EXAMPLES="https://raw.githubusercontent.com/MarlinFirmware/Configurations/$REPO/config/examples"
  7. which curl >/dev/null && TOOL='curl -L -s -S -f -o wgot'
  8. which wget >/dev/null && TOOL='wget -q -O wgot'
  9. restore_configs
  10. cd Marlin
  11. $TOOL "$EXAMPLES/$RDIR/Configuration.h" >/dev/null 2>&1 && mv wgot Configuration.h
  12. $TOOL "$EXAMPLES/$RDIR/Configuration_adv.h" >/dev/null 2>&1 && mv wgot Configuration_adv.h
  13. $TOOL "$EXAMPLES/$RDIR/_Bootscreen.h" >/dev/null 2>&1 && mv wgot _Bootscreen.h
  14. $TOOL "$EXAMPLES/$RDIR/_Statusscreen.h" >/dev/null 2>&1 && mv wgot _Statusscreen.h
  15. rm -f wgot
  16. cd - >/dev/null