Scott Lahteine
5 years ago
24 changed files with 30 additions and 139 deletions
@ -1,7 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
PINS="Marlin/src/pins" |
|
||||
RAMPS="$PINS/ramps/pins_RAMPS.h" |
|
||||
BKUP="$PINS/ramps/pins_RAMPS.backup.h" |
|
||||
|
|
||||
[[ -f $RAMPS ]] && cp "$RAMPS" "$BKUP" |
|
@ -1,8 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
case "$#" in |
|
||||
0 ) BOARD=arduino:avr:mega:cpu=atmega2560 ;; |
|
||||
* ) BOARD=arduino:avr:$1 ;; |
|
||||
esac |
|
||||
|
|
||||
arduino --verify --board $BOARD Marlin/Marlin.ino |
|
@ -1,4 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
build_marlin $@ && exit 0 |
|
||||
exit 1 |
|
@ -1,3 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
platformio run --project-dir $@ --silent |
|
@ -1,3 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
arduino --verify --board teensy:avr:teensy35:usb=serial,speed=120,opt=o1std,keys=en-us Marlin/Marlin.ino |
|
@ -1,14 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
[ -z "$1" ] || cd $1 |
|
||||
|
|
||||
if [ -d ".test" ]; then |
|
||||
printf "\033[0;31mEnvironment backup already exists!\033[0m\n" |
|
||||
else |
|
||||
mkdir .test |
|
||||
cp Marlin/Configuration*.h .test/ |
|
||||
[ -f Marlin/_Bootscreen.h ] && cp Marlin/_Bootscreen.h .test/ |
|
||||
[ -f Marlin/_Statusscreen.h ] && cp Marlin/_Statusscreen.h .test/ |
|
||||
cp -r Marlin/src/pins .test/pins |
|
||||
printf "\033[0;32mEnvironment Backup created\033[0m\n" |
|
||||
fi |
|
@ -1,12 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
rm -rf .pioenvs |
|
||||
rm -rf .piolibdeps |
|
||||
rm -rf .piolib |
|
||||
rm -rf .pio |
|
||||
|
|
||||
if [[ $1 = "--deep" ]]; then |
|
||||
rm -rf ~/.platformio/packages/* |
|
||||
rm -rf ~/.platformio/platforms/* |
|
||||
rm -rf ~/.platformio/.cache/* |
|
||||
fi |
|
@ -1,26 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
[ -z "$1" ] || cd $1 |
|
||||
|
|
||||
if [ -d ".test" ]; then |
|
||||
cp .test/Configuration*.h Marlin/ |
|
||||
rm .test/Configuration*.h |
|
||||
|
|
||||
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 |
|
@ -1,17 +1,5 @@ |
|||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||
|
|
||||
RESTORE="https://raw.githubusercontent.com/MarlinFirmware/Configurations/master/config/default" |
git checkout Marlin/Configuration*.h 2>/dev/null |
||||
|
git checkout Marlin/src/pins/ramps/pins_RAMPS.h 2>/dev/null |
||||
cd Marlin |
rm -f Marlin/_Bootscreen.h Marlin/_Statusscreen.h |
||||
|
|
||||
rm -f Conf*.h _*screen.h |
|
||||
|
|
||||
PINS="src/pins" |
|
||||
RAMPS="$PINS/ramps/pins_RAMPS.h" |
|
||||
BKUP="$PINS/ramps/pins_RAMPS.backup.h" |
|
||||
[ -f $BKUP ] && { cp "$BKUP" "$RAMPS" ; rm -f $BKUP ; } |
|
||||
|
|
||||
wget -q "$RESTORE/Configuration.h" -O Configuration.h |
|
||||
wget -q "$RESTORE/Configuration_adv.h" -O Configuration_adv.h |
|
||||
|
|
||||
cd - >/dev/null |
|
||||
|
@ -1,3 +0,0 @@ |
|||||
#!/usr/bin/env bash |
|
||||
|
|
||||
cp Marlin/Configuration*.h config/default |
|
Loading…
Reference in new issue