diff options
| author | Jumail Mundekkat | 2019-02-18 19:00:33 +0100 |
|---|---|---|
| committer | MechMerlin | 2019-02-18 19:00:33 +0100 |
| commit | 149015e799b5d5df49f7e22aa7bce8f607afdd28 (patch) | |
| tree | e95212c7f3534f0ceda29edddef2c6aa4aec0771 /tmk_core/make_dfu_header.sh | |
| parent | 0cee0764fd9d53d6bb835e2db2340f2541870386 (diff) | |
Fixed grep issue in bootloader build target (#3848)
* Changed use of '\s' in grep to '[ \t]' for portability
* Pushed DFU Keyboard.h into a shell script
* Fixed execution permissions on make_dfu_header,sh
Diffstat (limited to 'tmk_core/make_dfu_header.sh')
| -rwxr-xr-x | tmk_core/make_dfu_header.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tmk_core/make_dfu_header.sh b/tmk_core/make_dfu_header.sh new file mode 100755 index 0000000000..49ba66251a --- /dev/null +++ b/tmk_core/make_dfu_header.sh @@ -0,0 +1,16 @@ +#!/bin/sh +ALL_CONFIGS=$* +GREP="grep" + +cat <<- EOF > lib/lufa/Bootloaders/DFU/Keyboard.h +#ifndef QMK_KEYBOARD +#define QMK_KEYBOARD + +$($GREP "MANUFACTURER[ \t]" $ALL_CONFIGS -h | tail -1) +$($GREP "PRODUCT[ \t]" $ALL_CONFIGS -h | tail -1 | tr -d '\r') Bootloader +$($GREP "QMK_ESC_OUTPUT[ \t]" $ALL_CONFIGS -h | tail -1) +$($GREP "QMK_ESC_INPUT[ \t]" $ALL_CONFIGS -h | tail -1) +$($GREP "QMK_LED[ \t]" $ALL_CONFIGS -h | tail -1) +$($GREP "QMK_SPEAKER[ \t]" $ALL_CONFIGS -h | tail -1) +#endif +EOF |