diff options
author | Joshua T <joshua@sonofone.net> | 2016-07-30 08:41:22 -0500 |
---|---|---|
committer | Joshua T <joshua@sonofone.net> | 2016-07-30 08:41:22 -0500 |
commit | e9a501d4477981da878294a630431ed76716c57e (patch) | |
tree | 5c6c6a381e21f3d8f2bba223438d7528da717962 /keyboards/ergodox/ez/190hotfix.sh | |
parent | 5607b716ba0ec7002f29244f24aa8999b9511061 (diff) | |
parent | 7775f3e4b3309f3102bf9d887a79514a67d18da6 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/ergodox/ez/190hotfix.sh')
-rwxr-xr-x | keyboards/ergodox/ez/190hotfix.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/ergodox/ez/190hotfix.sh b/keyboards/ergodox/ez/190hotfix.sh new file mode 100755 index 0000000000..bdc3adce22 --- /dev/null +++ b/keyboards/ergodox/ez/190hotfix.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#a tool to fix broken keymaps as a result of pull request #190 +#changing the declaration of matrix_scan_user() and matrix_init_user() +# +#This script will save a copy of the specified keymap as keymap.c.bak +#and then create a new keymap.c with the definion corrected. +#this script must be run from the ergodox_ez directory +if [ $# -ne 1 ]; then + echo $0: usage: ./190hotfix keymap_name + exit 1 +fi + +echo Saving backup as ./keymaps/$1/keymap.c.bak ... +mv ./keymaps/$1/keymap.c ./keymaps/$1/keymap.c.bak + +echo Modifying ./keymaps/$1/keymap.c ... +cat ./keymaps/$1/keymap.c.bak | sed -r 's/^void \* matrix_/void matrix_/'>./keymaps/$1/keymap.c + +echo Complete! |