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,shpull/5172/head 0.6.297
parent
0cee0764fd
commit
149015e799
@ -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
|
Loading…
Reference in new issue