speed up list_keyboards.sh

This commit is contained in:
MURAOKA Taro 2021-01-02 02:24:05 +09:00 committed by Zach White
parent c01a8b030e
commit e11d3d524d

View file

@ -3,8 +3,6 @@
#
# This allows us to exclude keyboards by including a .noci file.
find -L keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
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