diff options
Diffstat (limited to 'util/list_keyboards.sh')
-rwxr-xr-x | util/list_keyboards.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/list_keyboards.sh b/util/list_keyboards.sh new file mode 100755 index 000000000..aa6ed1c6a --- /dev/null +++ b/util/list_keyboards.sh | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/sh | ||
2 | # Temporary shell script to find keyboards | ||
3 | # | ||
4 | # This allows us to exclude keyboards by including a .noci file. | ||
5 | |||
6 | find -L keyboards -type f -name rules.mk | grep -v keymaps | sed 's!keyboards/\(.*\)/rules.mk!\1!' | while read keyboard; do | ||
7 | if [ "$1" = "noci" ]; then | ||
8 | case "$keyboard" in | ||
9 | handwired/*) | ||
10 | ;; | ||
11 | *) | ||
12 | test -e "keyboards/${keyboard}/.noci" || echo "$keyboard" | ||
13 | ;; | ||
14 | esac | ||
15 | else | ||
16 | echo "$keyboard" | ||
17 | fi | ||
18 | done | ||