My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

use_example_configs 806B

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