You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
435 B
18 lines
435 B
#!/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 |
|
if [ "$1" = "noci" ]; then |
|
case "$keyboard" in |
|
handwired/*) |
|
;; |
|
*) |
|
test -e "keyboards/${keyboard}/.noci" || echo "$keyboard" |
|
;; |
|
esac |
|
else |
|
echo "$keyboard" |
|
fi |
|
done
|
|
|