summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2021-08-15 20:51:13 +0000
committerGitHub <noreply@github.com>2021-08-16 06:51:13 +1000
commit4b453dca92f87899d98b5340b16677bd78a52beb (patch)
treea40b8e53964520762946e0c63bfc0a83cb2a3428
parentfd340f8957055d74b26a5ddc490253fcc8a3a2f7 (diff)
Remove MIDI Configuration boilerplate (#11151)
* remove keyboard-level instances of `MIDI_ENABLE = no` Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e '/^[ #]*MIDI_ENABLE[ \t]*=[ \t]*no/d' {} + ``` Co-Authored-By: Nick Brassel <nick@tzarc.org> * fix case-sensitivity issues on MIDI_ENABLE Change instances of `MIDI_ENABLE = YES` to `MIDI_ENABLE = yes`. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;MIDI_ENABLE[ \t]*=[ \t]*[Yy][Ee][Ss];MIDI_ENABLE = yes;g' {} + ``` * replace `# MIDI controls` with `# MIDI support` Replace `# MIDI controls` with `# MIDI support` in keyboard-level `rules.mk` files. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#[ \t]*MIDI[ \t]*\(controls\|support\).*;# MIDI support;g' {} + ``` * align inline comments Aligns the inline comments to the length used by the QMK AVR rules.mk template. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;MIDI_ENABLE *= *yes.*;MIDI_ENABLE = yes # MIDI support;g' {} + ``` * remove commented instances of `MIDI_ENABLE` from keyboard `rules.mk` files Commands: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#\([ \t]*MIDI_ENABLE\) = yes; \1 = no ;' {} + find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;^\([ \t]*\)\(MIDI_ENABLE = no\);\2\1;' {} + find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e '/^[ #]\+MIDI_ENABLE *= *no/d' {} + ``` * remove MIDI configuration boilerplate from keyboard config.h files Co-authored-by: Nick Brassel <nick@tzarc.org>
-rw-r--r--keyboards/1upkeyboards/1up60hse/config.h20
-rw-r--r--keyboards/1upkeyboards/1up60hse/rules.mk1
-rw-r--r--keyboards/1upkeyboards/super16/config.h20
-rw-r--r--keyboards/1upkeyboards/super16/rules.mk1
-rw-r--r--keyboards/30wer/rules.mk1
-rw-r--r--keyboards/40percentclub/25/config.h20
-rw-r--r--keyboards/40percentclub/25/rules.mk1
-rw-r--r--keyboards/40percentclub/4pack/config.h20
-rw-r--r--keyboards/40percentclub/4pack/rules.mk1
-rw-r--r--keyboards/40percentclub/4x4/config.h20
-rw-r--r--keyboards/40percentclub/4x4/rules.mk1
-rw-r--r--keyboards/40percentclub/5x5/config.h20
-rw-r--r--keyboards/40percentclub/5x5/rules.mk1
-rw-r--r--keyboards/40percentclub/6lit/config.h20
-rw-r--r--keyboards/40percentclub/6lit/rules.mk1
-rw-r--r--keyboards/40percentclub/foobar/config.h20
-rw-r--r--keyboards/40percentclub/foobar/rules.mk1
-rw-r--r--keyboards/40percentclub/half_n_half/config.h20
-rw-r--r--keyboards/40percentclub/half_n_half/rules.mk1
-rw-r--r--keyboards/40percentclub/i75/config.h20
-rw-r--r--keyboards/40percentclub/i75/rules.mk1
-rw-r--r--keyboards/40percentclub/mf68/rules.mk1
-rw-r--r--keyboards/40percentclub/nano/rules.mk1
-rw-r--r--keyboards/40percentclub/nein/config.h20
-rw-r--r--keyboards/40percentclub/nein/rules.mk1
-rw-r--r--keyboards/40percentclub/nori/config.h20
-rw-r--r--keyboards/40percentclub/nori/rules.mk1
-rw-r--r--keyboards/40percentclub/ut47/rules.mk1
-rw-r--r--keyboards/4pplet/aekiso60/rev_a/rules.mk1
-rw-r--r--keyboards/4pplet/steezy60/rev_a/rules.mk1
-rw-r--r--keyboards/4pplet/waffling60/rev_a/rules.mk1
-rw-r--r--keyboards/6ball/rules.mk1
-rw-r--r--keyboards/7c8/framework/rules.mk1
-rw-r--r--keyboards/7skb/rules.mk1
-rw-r--r--keyboards/9key/rules.mk1
-rw-r--r--keyboards/abacus/config.h20
-rw-r--r--keyboards/abacus/rules.mk1
-rw-r--r--keyboards/absinthe/rules.mk1
-rw-r--r--keyboards/abstract/ellipse/rev1/config.h20
-rw-r--r--keyboards/abstract/ellipse/rev1/rules.mk1
-rw-r--r--keyboards/acheron/austin/rules.mk1
-rw-r--r--keyboards/acheron/elongate/config.h19
-rw-r--r--keyboards/acheron/elongate/rules.mk1
-rw-r--r--keyboards/acheron/keebspcb/rules.mk1
-rw-r--r--keyboards/acheron/shark/config.h20
-rw-r--r--keyboards/acheron/shark/rules.mk1
-rw-r--r--keyboards/adelheid/config.h20
-rw-r--r--keyboards/adkb96/rules.mk1
-rw-r--r--keyboards/aeboards/aegis/rules.mk1
-rw-r--r--keyboards/aeboards/ext65/rev1/rules.mk1
-rw-r--r--keyboards/ai03/equinox/rev0/rules.mk1
-rw-r--r--keyboards/ai03/equinox/rev1/rules.mk1
-rw-r--r--keyboards/ai03/lunar/config.h20
-rw-r--r--keyboards/ai03/lunar/rules.mk1
-rw-r--r--keyboards/ai03/orbit/config.h20
-rw-r--r--keyboards/ai03/orbit/rules.mk1
-rw-r--r--keyboards/ai03/orbit_x/rules.mk1
-rw-r--r--keyboards/ai03/polaris/rules.mk1
-rw-r--r--keyboards/ai03/quasar/config.h20
-rw-r--r--keyboards/ai03/quasar/rules.mk1
-rw-r--r--keyboards/akb/eb46/rules.mk1
-rw-r--r--keyboards/akb/raine/rules.mk1
-rw-r--r--keyboards/alf/dc60/config.h20
-rw-r--r--keyboards/alf/dc60/rules.mk1
-rw-r--r--keyboards/alf/x11/config.h20
-rw-r--r--keyboards/alf/x11/rules.mk1
-rw-r--r--keyboards/allison/config.h20
-rw-r--r--keyboards/allison/rules.mk1
-rw-r--r--keyboards/allison_numpad/config.h20
-rw-r--r--keyboards/allison_numpad/rules.mk1
-rw-r--r--keyboards/amj96/config.h20
-rw-r--r--keyboards/amj96/rules.mk1
-rw-r--r--keyboards/amjkeyboard/amj66/rules.mk1
-rw-r--r--keyboards/amjpad/rules.mk1
-rw-r--r--keyboards/anavi/macropad8/rules.mk1
-rw-r--r--keyboards/angel17/alpha/config.h20
-rw-r--r--keyboards/angel17/alpha/rules.mk1
-rw-r--r--keyboards/angel17/rev1/config.h20
-rw-r--r--keyboards/angel17/rev1/rules.mk1
-rw-r--r--keyboards/angel17/rules.mk1
-rw-r--r--keyboards/angel64/alpha/config.h20
-rw-r--r--keyboards/angel64/rev1/config.h20
-rw-r--r--keyboards/angel64/rules.mk1
-rw-r--r--keyboards/aos/tkl/rules.mk1
-rw-r--r--keyboards/aplyard/aplx6/rev1/rules.mk1
-rw-r--r--keyboards/arabica37/rev1/rules.mk1
-rw-r--r--keyboards/arisu/config.h20
-rw-r--r--keyboards/arisu/rules.mk1
-rw-r--r--keyboards/ash1800/config.h20
-rw-r--r--keyboards/ash1800/rules.mk1
-rw-r--r--keyboards/ashpil/modelm_usbc/rules.mk1
-rw-r--r--keyboards/atreus/rules.mk1
-rw-r--r--keyboards/atreus62/rules.mk1
-rw-r--r--keyboards/atxkb/1894/rules.mk1
-rw-r--r--keyboards/baguette/config.h20
-rw-r--r--keyboards/baguette/rules.mk1
-rw-r--r--keyboards/bakeneko80/config.h19
-rw-r--r--keyboards/bakeneko80/rules.mk1
-rw-r--r--keyboards/bantam44/rules.mk2
-rw-r--r--keyboards/bat43/config.h20
-rw-r--r--keyboards/bat43/rules.mk1
-rw-r--r--keyboards/bear_face/rules.mk1
-rw-r--r--keyboards/beatervan/rules.mk1
-rwxr-xr-xkeyboards/bigseries/1key/rules.mk1
-rwxr-xr-xkeyboards/bigseries/2key/rules.mk1
-rwxr-xr-xkeyboards/bigseries/3key/rules.mk1
-rwxr-xr-xkeyboards/bigseries/4key/rules.mk1
-rw-r--r--keyboards/blockey/config.h20
-rw-r--r--keyboards/blockey/rules.mk1
-rw-r--r--keyboards/bm16a/config.h20
-rw-r--r--keyboards/bm16a/rules.mk1
-rw-r--r--keyboards/bm43a/rules.mk1
-rw-r--r--keyboards/bm60rgb/rules.mk1
-rw-r--r--keyboards/boardsource/3x4/config.h20
-rw-r--r--keyboards/boardsource/4x12/config.h20
-rw-r--r--keyboards/boardsource/4x12/rules.mk1
-rw-r--r--keyboards/boardsource/5x12/config.h20
-rw-r--r--keyboards/boardsource/5x12/rules.mk1
-rw-r--r--keyboards/boardwalk/rules.mk1
-rw-r--r--keyboards/boston_meetup/2019/config.h20
-rw-r--r--keyboards/botanicalkeyboards/fm2u/rules.mk1
-rw-r--r--keyboards/bpiphany/frosty_flake/rules.mk1
-rw-r--r--keyboards/bpiphany/kitten_paw/rules.mk1
-rw-r--r--keyboards/bpiphany/pegasushoof/rules.mk1
-rw-r--r--keyboards/bpiphany/sixshooter/rules.mk1
-rw-r--r--keyboards/bpiphany/tiger_lily/rules.mk1
-rw-r--r--keyboards/bpiphany/unloved_bastard/config.h20
-rw-r--r--keyboards/bpiphany/unloved_bastard/rules.mk1
-rw-r--r--keyboards/bthlabs/geekpad/config.h20
-rw-r--r--keyboards/bthlabs/geekpad/rules.mk1
-rw-r--r--keyboards/business_card/alpha/config.h20
-rw-r--r--keyboards/business_card/alpha/rules.mk1
-rw-r--r--keyboards/business_card/beta/config.h20
-rw-r--r--