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.

env_backup 562B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. if [ ! -z "$1" ]; then
  3. cd $1
  4. fi
  5. if [ -d ".test" ]; then
  6. printf "\033[0;31mEnvironment backup already exists!\033[0m\n"
  7. else
  8. mkdir .test
  9. cp Marlin/Configuration.h .test/Configuration.h
  10. cp Marlin/Configuration_adv.h .test/Configuration_adv.h
  11. if [ -f Marlin/_Bootscreen.h ]; then
  12. cp Marlin/_Bootscreen.h .test/_Bootscreen.h
  13. fi
  14. if [ -f Marlin/_Statusscreen.h ]; then
  15. cp Marlin/_Statusscreen.h .test/_Statusscreen.h
  16. fi
  17. cp -r Marlin/src/pins .test/pins
  18. printf "\033[0;32mEnvironment Backup created\033[0m\n"
  19. fi