summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/gunp/upload-and-make.sh
diff options
context:
space:
mode:
authorGun Pinyo <gunpinyo@gmail.com>2017-10-25 02:28:01 +0100
committerJack Humbert <jack.humb@gmail.com>2017-10-24 17:01:20 -1000
commit21dfa29c28b8257116b2f1c0b4524c4062658598 (patch)
tree27d2731d755653bb509f54271776d425aa6162e6 /keyboards/planck/keymaps/gunp/upload-and-make.sh
parent4c960ad7c4b109dda8ddcb5ffe1d2f7e674f8f91 (diff)
Add a layout of planck named GunP, ready for pull request review.
Diffstat (limited to 'keyboards/planck/keymaps/gunp/upload-and-make.sh')
-rwxr-xr-xkeyboards/planck/keymaps/gunp/upload-and-make.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/gunp/upload-and-make.sh b/keyboards/planck/keymaps/gunp/upload-and-make.sh
new file mode 100755
index 0000000000..fd8f34c82d
--- /dev/null
+++ b/keyboards/planck/keymaps/gunp/upload-and-make.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+pushd ~/git-repos/qmk_firmware/
+rm -rf keyboards/planck/keymaps/gunp/
+cp -rf ~/Documents/qmk-planck/ keyboards/planck/keymaps/gunp/
+if [[ $1 == "dfu" ]]; then
+ # sudo dfu-programmer atmega32u4 erase --force
+ # sudo dfu-programmer atmega32u4 flash .build/planck_rev4_gunp.hex
+ # sudo dfu-programmer atmega32u4 reset
+ sudo make planck/rev4:gunp:dfu
+ # bash ~/bin/gunp-kb-layout-reset
+else
+ make planck/rev4:gunp:clean
+ make planck/rev4:gunp:all
+fi
+popd