Marlin/buildroot/bin/use_example_configs

20 lines
557 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2017-09-06 13:28:32 +02:00
restore_configs
2018-10-13 04:15:54 +02:00
if [ -f "Marlin/src/config/examples/$@/Configuration.h" ]; then
cp "Marlin/src/config/examples/$@/Configuration.h" Marlin/
fi
if [ -f "Marlin/src/config/examples/$@/Configuration_adv.h" ]; then
cp "Marlin/src/config/examples/$@/Configuration_adv.h" Marlin/
fi
2017-09-06 13:28:32 +02:00
if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then
cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/
fi
if [ -f "Marlin/src/config/examples/$@/_Statusscreen.h" ]; then
cp "Marlin/src/config/examples/$@/_Statusscreen.h" Marlin/
fi