diff options
Diffstat (limited to 'util/new_keyboard.sh')
| -rwxr-xr-x | util/new_keyboard.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/util/new_keyboard.sh b/util/new_keyboard.sh index d0db23bb4..62e8cb9e1 100755 --- a/util/new_keyboard.sh +++ b/util/new_keyboard.sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | 2 | ||
| 3 | # This script generates a new keyboard directory under keyboards/, | 3 | # This script generates a new keyboard directory under keyboards/, |
| 4 | # and copies the template files from quantum/template/ into it. | 4 | # and copies the template files from data/templates/ into it. |
| 5 | 5 | ||
| 6 | # Print an error message with the word "ERROR" in red. | 6 | # Print an error message with the word "ERROR" in red. |
| 7 | echo_error() { | 7 | echo_error() { |
| @@ -35,11 +35,11 @@ copy_templates() { | |||
| 35 | mkdir -p "$keyboard_dir" | 35 | mkdir -p "$keyboard_dir" |
| 36 | 36 | ||
| 37 | echo -n "Copying base template files..." | 37 | echo -n "Copying base template files..." |
| 38 | cp -r "quantum/template/base/." "${keyboard_dir}" | 38 | cp -r "data/templates/base/." "${keyboard_dir}" |
| 39 | echo " done" | 39 | echo " done" |
| 40 | 40 | ||
| 41 | echo -n "Copying $keyboard_type template files..." | 41 | echo -n "Copying $keyboard_type template files..." |
| 42 | cp -r "quantum/template/${keyboard_type}/." "${keyboard_dir}" | 42 | cp -r "data/templates/${keyboard_type}/." "${keyboard_dir}" |
| 43 | echo " done" | 43 | echo " done" |
| 44 | 44 | ||
| 45 | echo -n "Renaming keyboard files..." | 45 | echo -n "Renaming keyboard files..." |
| @@ -129,6 +129,12 @@ if [ ! -d "quantum" ]; then | |||
| 129 | exit 1 | 129 | exit 1 |
| 130 | fi | 130 | fi |
| 131 | 131 | ||
| 132 | echo_bold "########################################" | ||
| 133 | echo_bold "# NOTICE #" | ||
| 134 | echo_bold "# This script has been deprecated. #" | ||
| 135 | echo_bold "# Please use qmk new-keyboard instead. #" | ||
| 136 | echo_bold "########################################" | ||
| 137 | echo | ||
| 132 | echo_bold "Generating a new QMK keyboard directory" | 138 | echo_bold "Generating a new QMK keyboard directory" |
| 133 | echo | 139 | echo |
| 134 | 140 | ||
