~ruther/qmk_firmware

ref: 40529e89de5a49b6d7978aedef9dd425d24f746d qmk_firmware/util/list_keyboards.sh -rwxr-xr-x 435 bytes
40529e89 — uqs [Keymap] Add uqs' keymaps for various boards and ploopy mouse (#16265) 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