From c921a14048357761156e0c94698929b8bf400f12 Mon Sep 17 00:00:00 2001 From: Robin Heinemann Date: Thu, 7 Jul 2016 12:53:36 +0200 Subject: [PATCH] add update script --- scripts/make.sh | 2 ++ scripts/programm.sh | 2 ++ scripts/update.sh | 5 +++++ 3 files changed, 9 insertions(+) create mode 100755 scripts/make.sh create mode 100755 scripts/programm.sh create mode 100755 scripts/update.sh diff --git a/scripts/make.sh b/scripts/make.sh new file mode 100755 index 000000000..5925dab5a --- /dev/null +++ b/scripts/make.sh @@ -0,0 +1,2 @@ +#!/bin/env bash +make grbl.hex diff --git a/scripts/programm.sh b/scripts/programm.sh new file mode 100755 index 000000000..ff33de229 --- /dev/null +++ b/scripts/programm.sh @@ -0,0 +1,2 @@ +#!/bin/env bash +avrdude -C/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -U flash:w:grbl.hex:i diff --git a/scripts/update.sh b/scripts/update.sh new file mode 100755 index 000000000..92e3255c7 --- /dev/null +++ b/scripts/update.sh @@ -0,0 +1,5 @@ +#!/bin/env bash +git stash +git pull +./make.sh +./programm.sh