diff options
Diffstat (limited to 'keyboards/planck/keymaps/gunp/upload-and-make.sh')
-rwxr-xr-x | keyboards/planck/keymaps/gunp/upload-and-make.sh | 16 |
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 |