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_restore 682B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. if [ ! -z "$1" ]; then
  3. cd $1
  4. fi
  5. if [ -d ".test" ]; then
  6. cp .test/Configuration.h Marlin/Configuration.h
  7. cp .test/Configuration_adv.h Marlin/Configuration_adv.h
  8. rm .test/Configuration.h
  9. rm .test/Configuration_adv.h
  10. if [ -f .test/_Bootscreen.h ]; then
  11. cp .test/_Bootscreen.h Marlin/_Bootscreen.h
  12. rm .test/_Bootscreen.h
  13. fi
  14. if [ -f .test/_Statusscreen.h ]; then
  15. cp .test/_Statusscreen.h Marlin/_Statusscreen.h
  16. rm .test/_Statusscreen.h
  17. fi
  18. cp -r .test/pins Marlin/src
  19. rm -r .test/pins
  20. rmdir .test
  21. printf "\033[0;32mEnvironment Restored\033[0m\n"
  22. else
  23. printf "\033[0;31mEnvironment Backup not available!\033[0m\n"
  24. fi