1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/util/list_keyboards.sh
2021-01-01 10:08:32 -08:00

9 lines
326 B
Bash
Executable file

#!/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
[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
done