properly generate tables maybe

keyboard_identifiers
Jack Humbert 7 years ago
parent 1b4b5e5c66
commit 993427e58b

@ -1,6 +1,7 @@
# Keyboard Identifiers # Keyboard Identifiers
|Keyboard|Vendor ID|Product ID|Device Ver| |Keyboard|Vendor ID|Product ID|Device Ver|
| ------ |--------:| --------:| --------:|
|alps64|0xFEED|0x6464|0x0001| |alps64|0xFEED|0x6464|0x0001|
|amj40|0xFEED|0x6072|0x0002| |amj40|0xFEED|0x6072|0x0002|
|amj60|0xFEED|0x6066|0x0001| |amj60|0xFEED|0x6066|0x0001|

@ -1,7 +1,8 @@
#/bin/bash #/bin/bash
echo "# Keyboard Identifiers echo "# Keyboard Identifiers
|Keyboard|Vendor ID|Product ID|Device Ver|" > docs/keyboard_identifiers.md |Keyboard|Vendor ID|Product ID|Device Ver|
| ------ |--------:| --------:| --------:|" > docs/keyboard_identifiers.md
for project in $(find . -regex '\./keyboards/[a-z0-9_\-]+/config.h') for project in $(find . -regex '\./keyboards/[a-z0-9_\-]+/config.h')
do do
keyboard_name=$(printf $project | sed -r "s/\.\/keyboards\/([a-zA-Z0-9_\-]+).*/\1/g") keyboard_name=$(printf $project | sed -r "s/\.\/keyboards\/([a-zA-Z0-9_\-]+).*/\1/g")

Loading…
Cancel
Save