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.
|
|
|
|
|
2021-01-01 17:24:05 +00:00
|
|
|
find -L keyboards -type f -name rules.mk | grep -v keymaps | sed 's!keyboards/\(.*\)/rules.mk!\1!' | while read keyboard; do
|
2021-01-13 16:12:28 +00:00
|
|
|
if [ "$1" = "noci" ]; then
|
|
|
|
case "$keyboard" in
|
|
|
|
handwired/*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
test -e "keyboards/${keyboard}/.noci" || echo "$keyboard"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
echo "$keyboard"
|
|
|
|
fi
|
2020-12-18 20:17:53 +00:00
|
|
|
done
|