diff options
| -rw-r--r-- | quantum/template/avr/config.h | 2 | ||||
| -rw-r--r-- | quantum/template/avr/template.c | 2 | ||||
| -rw-r--r-- | quantum/template/base/keymaps/default/config.h | 2 | ||||
| -rw-r--r-- | quantum/template/base/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | quantum/template/base/template.h | 2 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/config.h | 2 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/rules.mk | 15 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/template.c | 2 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/usbconfig.h | 10 | ||||
| -rwxr-xr-x | util/new_keyboard.sh | 13 |
10 files changed, 20 insertions, 32 deletions
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h index c13784ba1..1e41a2d31 100644 --- a/quantum/template/avr/config.h +++ b/quantum/template/avr/config.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2019 %YOUR_NAME% | 2 | Copyright %YEAR% %YOUR_NAME% |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/avr/template.c b/quantum/template/avr/template.c index 86dc69abc..e852a42c4 100644 --- a/quantum/template/avr/template.c +++ b/quantum/template/avr/template.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2019 %YOUR_NAME% | 1 | /* Copyright %YEAR% %YOUR_NAME% |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/base/keymaps/default/config.h b/quantum/template/base/keymaps/default/config.h index 44382016a..5b00c8956 100644 --- a/quantum/template/base/keymaps/default/config.h +++ b/quantum/template/base/keymaps/default/config.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2019 %YOUR_NAME% | 1 | /* Copyright %YEAR% %YOUR_NAME% |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/base/keymaps/default/keymap.c b/quantum/template/base/keymaps/default/keymap.c index 482a44544..0e9fad357 100644 --- a/quantum/template/base/keymaps/default/keymap.c +++ b/quantum/template/base/keymaps/default/keymap.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2019 %YOUR_NAME% | 1 | /* Copyright %YEAR% %YOUR_NAME% |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/base/template.h b/quantum/template/base/template.h index 5b5076c47..2e531b1fd 100644 --- a/quantum/template/base/template.h +++ b/quantum/template/base/template.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2019 %YOUR_NAME% | 1 | /* Copyright %YEAR% %YOUR_NAME% |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h index d954fec96..320d71fcb 100644 --- a/quantum/template/ps2avrgb/config.h +++ b/quantum/template/ps2avrgb/config.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com> | 2 | Copyright %YEAR% %YOUR_NAME% |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/ps2avrgb/rules.mk b/quantum/template/ps2avrgb/rules.mk index bd0eed052..98a920e18 100644 --- a/quantum/template/ps2avrgb/rules.mk +++ b/quantum/template/ps2avrgb/rules.mk | |||
| @@ -1,18 +1,3 @@ | |||
| 1 | # Copyright 2019 Luiz Ribeiro <luizribeiro@gmail.com> | ||
| 2 | # | ||
| 3 | # This program is free software: you can redistribute it and/or modify | ||
| 4 | # it under the terms of the GNU General Public License as published by | ||
| 5 | # the Free Software Foundation, either version 2 of the License, or | ||
| 6 | # (at your option) any later version. | ||
| 7 | # | ||
| 8 | # This program is distributed in the hope that it will be useful, | ||
| 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | # GNU General Public License for more details. | ||
| 12 | # | ||
| 13 | # You should have received a copy of the GNU General Public License | ||
| 14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | |||
| 16 | # MCU name | 1 | # MCU name |
| 17 | MCU = atmega32a | 2 | MCU = atmega32a |
| 18 | PROTOCOL = VUSB | 3 | PROTOCOL = VUSB |
diff --git a/quantum/template/ps2avrgb/template.c b/quantum/template/ps2avrgb/template.c index 3f920de48..07f27bbb2 100644 --- a/quantum/template/ps2avrgb/template.c +++ b/quantum/template/ps2avrgb/template.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2019 %YOUR_NAME% | 1 | /* Copyright %YEAR% %YOUR_NAME% |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/quantum/template/ps2avrgb/usbconfig.h b/quantum/template/ps2avrgb/usbconfig.h index 54a7d20f1..465db3a13 100644 --- a/quantum/template/ps2avrgb/usbconfig.h +++ b/quantum/template/ps2avrgb/usbconfig.h | |||
| @@ -1,13 +1,3 @@ | |||
| 1 | /* Name: usbconfig.h | ||
| 2 | * Project: V-USB, virtual USB port for Atmel's(r) AVR(r) microcontrollers | ||
| 3 | * Author: Christian Starkjohann | ||
| 4 | * Creation Date: 2005-04-01 | ||
| 5 | * Tabsize: 4 | ||
| 6 | * Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH | ||
| 7 | * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) | ||
| 8 | * This Revision: $Id: usbconfig-prototype.h 785 2010-05-30 17:57:07Z cs $ | ||
| 9 | */ | ||
| 10 | |||
| 11 | #pragma once | 1 | #pragma once |
| 12 | 2 | ||
| 13 | #include "config.h" | 3 | #include "config.h" |
diff --git a/util/new_keyboard.sh b/util/new_keyboard.sh index e9ce30978..35d89e402 100755 --- a/util/new_keyboard.sh +++ b/util/new_keyboard.sh | |||
| @@ -70,6 +70,18 @@ replace_placeholders() { | |||
| 70 | echo " done" | 70 | echo " done" |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | # Replace %YEAR% with the current year. | ||
| 74 | replace_year_placeholders() { | ||
| 75 | local replace_year_filenames=( | ||
| 76 | "${keyboard_dir}/config.h" | ||
| 77 | "${keyboard_dir}/${keyboard_name}.c" | ||
| 78 | "${keyboard_dir}/${keyboard_name}.h" | ||
| 79 | "${keyboard_dir}/keymaps/default/config.h" | ||
| 80 | "${keyboard_dir}/keymaps/default/keymap.c" | ||
| 81 | ) | ||
| 82 | replace_placeholders "%YEAR%" "$(date +%Y)" "${replace_year_filenames[@]}" | ||
| 83 | } | ||
| 84 | |||
| 73 | # Replace %KEYBOARD% with the keyboard name. | 85 | # Replace %KEYBOARD% with the keyboard name. |
| 74 | replace_keyboard_placeholders() { | 86 | replace_keyboard_placeholders() { |
| 75 | local replace_keyboard_filenames=( | 87 | local replace_keyboard_filenames=( |
| @@ -149,6 +161,7 @@ echo | |||
| 149 | 161 | ||
| 150 | copy_templates | 162 | copy_templates |
| 151 | set_sed_i | 163 | set_sed_i |
| 164 | replace_year_placeholders | ||
| 152 | replace_keyboard_placeholders | 165 | replace_keyboard_placeholders |
| 153 | [ -n "$username" ] && replace_name_placeholders | 166 | [ -n "$username" ] && replace_name_placeholders |
| 154 | 167 | ||
