summaryrefslogtreecommitdiffstats
path: root/util/list_keyboards.sh
blob: 1c103e0f11d658ac2d0d81bbe9d17ceaf6f5680e (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
# Temporary shell script to find keyboards
#
# This allows us to exclude keyboards by including a .noci file.

find -L keyboards -type f -name rules.mk | grep -v keymaps | sed 's!keyboards/\(.*\)/rules.mk!\1!' | while read keyboard; do
	[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
done