aboutsummaryrefslogtreecommitdiff
path: root/util/list_keyboards.sh
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /util/list_keyboards.sh
Diffstat (limited to 'util/list_keyboards.sh')
-rwxr-xr-xutil/list_keyboards.sh18
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
6find -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
18done