~ruther/qmk_firmware

ref: 7e4f74d6897c5c34be084317a3647f974fdd4e71 qmk_firmware/util/list_keyboards.sh -rwxr-xr-x 435 bytes
7e4f74d6 — takashicompany [Keyboard] Update Heavy Left (#16354) 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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