2020-12-18 21:17:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Temporary shell script to find keyboards
|
|
|
|
#
|
|
|
|
# This allows us to exclude keyboards by including a .noci file.
|
|
|
|
|
2021-01-01 18:24:05 +01: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 17:12:28 +01:00
|
|
|
if [ "$1" = "noci" ]; then
|
|
|
|
case "$keyboard" in
|
|
|
|
handwired/*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
test -e "keyboards/${keyboard}/.noci" || echo "$keyboard"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
echo "$keyboard"
|
|
|
|
fi
|
2020-12-18 21:17:53 +01:00
|
|
|
done
|