2020-12-18 20:17:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Temporary shell script to find keyboards
|
|
|
|
#
|
|
|
|
# This allows us to exclude keyboards by including a .noci file.
|
|
|
|
|
2020-12-20 08:08:39 +00:00
|
|
|
find -L keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
|
|
|
|
keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
|
2020-12-18 20:17:53 +00:00
|
|
|
|
|
|
|
[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
|
|
|
|
done
|