My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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.1.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