mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-26 19:39:54 +00:00
17 lines
493 B
Bash
17 lines
493 B
Bash
|
#!/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
|