summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/new_keyboard.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/util/new_keyboard.sh b/util/new_keyboard.sh
index 7c5cdd3030..01458b4f19 100755
--- a/util/new_keyboard.sh
+++ b/util/new_keyboard.sh
@@ -74,9 +74,8 @@ replace_placeholders() {
replace_year_placeholders() {
local replace_year_filenames=(
"${keyboard_dir}/config.h"
- "${keyboard_dir}/${keyboard_name}.c"
- "${keyboard_dir}/${keyboard_name}.h"
- "${keyboard_dir}/keymaps/default/config.h"
+ "${keyboard_dir}/${keyboard_base_name}.c"
+ "${keyboard_dir}/${keyboard_base_name}.h"
"${keyboard_dir}/keymaps/default/keymap.c"
)
replace_placeholders "%YEAR%" "$(date +%Y)" "${replace_year_filenames[@]}"
@@ -100,9 +99,8 @@ replace_name_placeholders() {
"${keyboard_dir}/config.h"
"${keyboard_dir}/info.json"
"${keyboard_dir}/readme.md"
- "${keyboard_dir}/${keyboard_name}.c"
- "${keyboard_dir}/${keyboard_name}.h"
- "${keyboard_dir}/keymaps/default/config.h"
+ "${keyboard_dir}/${keyboard_base_name}.c"
+ "${keyboard_dir}/${keyboard_base_name}.h"
"${keyboard_dir}/keymaps/default/keymap.c"
)
replace_placeholders "%YOUR_NAME%" "$username" "${replace_name_filenames[@]}"