diff options
| author | QMK Bot <hello@qmk.fm> | 2020-12-18 20:18:55 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2020-12-18 20:18:55 +0000 |
| commit | d66c14b71ea42b6553e16f67ded3d37d3363aae8 (patch) | |
| tree | 1201f4685aa75f313fb815a8a172fefed55c9860 /util | |
| parent | 06f9297f9468a48c8be53c48b830e1eaa9a1665d (diff) | |
| parent | 03cbee8637cb2de632db718db62db31c3d08ae4d (diff) | |
| download | qmk_firmware-d66c14b71ea42b6553e16f67ded3d37d3363aae8.tar.gz qmk_firmware-d66c14b71ea42b6553e16f67ded3d37d3363aae8.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'util')
| -rwxr-xr-x | util/list_keyboards.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/util/list_keyboards.sh b/util/list_keyboards.sh new file mode 100755 index 000000000..672d4a784 --- /dev/null +++ b/util/list_keyboards.sh | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # Temporary shell script to find keyboards | ||
| 3 | # | ||
| 4 | # This allows us to exclude keyboards by including a .noci file. | ||
| 5 | |||
| 6 | find keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do | ||
| 7 | keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!') | ||
| 8 | |||
| 9 | [ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard" | ||
| 10 | done | ||
