diff options
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 000000000..49ba66251 --- /dev/null +++ b/tmk_core/make_dfu_header.sh | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ALL_CONFIGS=$* | ||
| 3 | GREP="grep" | ||
| 4 | |||
| 5 | cat <<- EOF > lib/lufa/Bootloaders/DFU/Keyboard.h | ||
| 6 | #ifndef QMK_KEYBOARD | ||
| 7 | #define QMK_KEYBOARD | ||
| 8 | |||
| 9 | $($GREP "MANUFACTURER[ \t]" $ALL_CONFIGS -h | tail -1) | ||
| 10 | $($GREP "PRODUCT[ \t]" $ALL_CONFIGS -h | tail -1 | tr -d '\r') Bootloader | ||
| 11 | $($GREP "QMK_ESC_OUTPUT[ \t]" $ALL_CONFIGS -h | tail -1) | ||
| 12 | $($GREP "QMK_ESC_INPUT[ \t]" $ALL_CONFIGS -h | tail -1) | ||
| 13 | $($GREP "QMK_LED[ \t]" $ALL_CONFIGS -h | tail -1) | ||
| 14 | $($GREP "QMK_SPEAKER[ \t]" $ALL_CONFIGS -h | tail -1) | ||
| 15 | #endif | ||
| 16 | EOF | ||
