2 # Script to make a new quantum project
6 KEYBOARD_UPPERCASE=$(echo $1 | awk '{print toupper($0)}')
9 mkdir keyboard/$1/keymaps
10 sed -e "s;%KEYBOARD%;$KEYBOARD;g" -e "s;%KEYBOARD_UPPERCASE%;$KEYBOARD_UPPERCASE;g" quantum/template/template.h > keyboard/$KEYBOARD/$KEYBOARD.h
11 sed -e "s;%KEYBOARD%;$KEYBOARD;g" quantum/template/template.c > keyboard/$KEYBOARD/$KEYBOARD.c
12 sed -e "s;%KEYBOARD%;$KEYBOARD;g" quantum/template/config.h > keyboard/$KEYBOARD/config.h
13 sed -e "s;%KEYBOARD%;$KEYBOARD;g" quantum/template/README.md > keyboard/$KEYBOARD/README.md
14 sed -e "s;%KEYBOARD%;$KEYBOARD;g" quantum/template/Makefile > keyboard/$KEYBOARD/Makefile
15 sed -e "s;%KEYBOARD%;$KEYBOARD;g" quantum/template/keymaps/keymap_default.c > keyboard/$KEYBOARD/keymaps/keymap_default.c
16 cp quantum/template/bootloader.hex keyboard/$KEYBOARD/bootloader.hex
18 echo "######################################################"
19 echo "# keyboard/$KEYBOARD project created. To start"
20 echo "# working on things, use the following command:"
21 echo "# cd keyboard/$KEYBOARD"
22 echo "######################################################"