Scott Lahteine
6 years ago
committed by
GitHub
13 changed files with 111 additions and 81 deletions
@ -1,17 +1,15 @@ |
|||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||
|
# |
||||
|
# restore_configs |
||||
|
# |
||||
|
# Restore default configs, delete pins backup and dogm bitmaps |
||||
|
# |
||||
|
|
||||
cp Marlin/src/config/default/Configuration.h Marlin/Configuration.h |
# Restore the (possibly modified) Configurations |
||||
cp Marlin/src/config/default/Configuration_adv.h Marlin/Configuration_adv.h |
[ -d ".test" -a -f ".test/Configuration.h" ] && cp .test/Configuration*.h Marlin/ |
||||
|
|
||||
if [ -f Marlin/src/pins/pins_RAMPS.h.backup ]; then |
# Restore the original unmodified pins |
||||
cp Marlin/src/pins/pins_RAMPS.h.backup Marlin/src/pins/pins_RAMPS.h |
[ -d ".test/pins" ] && cp -r .test/pins Marlin/src/pins/ |
||||
rm Marlin/src/pins/pins_RAMPS.h.backup |
|
||||
fi |
|
||||
|
|
||||
if [ -f Marlin/_Bootscreen.h ]; then |
# Delete DOGM bitmaps |
||||
rm Marlin/_Bootscreen.h |
rm -f Marlin/_*screen.h |
||||
fi |
|
||||
|
|
||||
if [ -f Marlin/_Statusscreen.h ]; then |
|
||||
rm Marlin/_Statusscreen.h |
|
||||
fi |
|
||||
|
@ -1,4 +1,3 @@ |
|||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||
|
|
||||
cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h |
cp Marlin/Configuration*.h .test/ |
||||
cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h |
|
||||
|
Loading…
Reference in new issue