~ruther/qmk_firmware

ref: 19c57a2a6a7aa73dca7e06acdfe93508288ddfb0 qmk_firmware/util/list_keyboards.sh -rwxr-xr-x 435 bytes
19c57a2a — cole smith [Keyboard] Lulu keyboard by boardsource (#15951) 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