aboutsummaryrefslogtreecommitdiff
path: root/util/new_keyboard.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/new_keyboard.sh')
-rwxr-xr-xutil/new_keyboard.sh12
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.
7echo_error() { 7echo_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
130fi 130fi
131 131
132echo_bold "########################################"
133echo_bold "# NOTICE #"
134echo_bold "# This script has been deprecated. #"
135echo_bold "# Please use qmk new-keyboard instead. #"
136echo_bold "########################################"
137echo
132echo_bold "Generating a new QMK keyboard directory" 138echo_bold "Generating a new QMK keyboard directory"
133echo 139echo
134 140