mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-09 14:55:00 -06:00
Update platform tests to use '.test' folder
This commit is contained in:
parent
18f1af2dca
commit
05dc79e78d
11 changed files with 61 additions and 64 deletions
|
@ -2,25 +2,10 @@
|
|||
|
||||
[ -z "$1" ] || cd $1
|
||||
|
||||
if [ -d ".test" ]; then
|
||||
cp .test/Configuration*.h Marlin/
|
||||
rm .test/Configuration*.h
|
||||
cp Marlin/src/config/default/* Marlin/
|
||||
[ -f Marlin/_Bootscreen.h ] && rm Marlin/_Bootscreen.h
|
||||
[ -f Marlin/_Statusscreen.h ] && rm Marlin/_Statusscreen.h
|
||||
[ -d .test/pins ] && { cp .test/pins/* Marlin/src/pins/ ; rm -rf .test/pins ; }
|
||||
[ -d .test ] && rm -r .test
|
||||
|
||||
if [ -f .test/_Bootscreen.h ]; then
|
||||
cp .test/_Bootscreen.h Marlin/
|
||||
rm .test/_Bootscreen.h
|
||||
fi
|
||||
|
||||
if [ -f .test/_Statusscreen.h ]; then
|
||||
cp .test/_Statusscreen.h Marlin/
|
||||
rm .test/_Statusscreen.h
|
||||
fi
|
||||
|
||||
cp -r .test/pins Marlin/src
|
||||
rm -r .test/pins
|
||||
|
||||
rmdir .test
|
||||
printf "\033[0;32mEnvironment Restored\033[0m\n"
|
||||
else
|
||||
printf "\033[0;31mEnvironment Backup not available!\033[0m\n"
|
||||
fi
|
||||
printf "\033[0;32mEnvironment Restored\033[0m\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue