diff options
author | Alex Johnstone <alexjj@gmail.com> | 2016-03-25 11:16:33 -0700 |
---|---|---|
committer | Alex Johnstone <alexjj@gmail.com> | 2016-03-25 11:16:33 -0700 |
commit | 2d9037491271677f6642ec162b6a8be3ebb47e78 (patch) | |
tree | d3847db7e2b68c11f704e9635bc832ac7ec7a1e9 /keyboard/ergodox_ez/190hotfix.sh | |
parent | fb6dc7499f51688ec245826842300780273203c6 (diff) | |
parent | c9aec8bc246fe45a6486a5ef7a9ef1302e4e16ad (diff) |
Merge pull request #3 from jackhumbert/master
Pull upstream
Diffstat (limited to 'keyboard/ergodox_ez/190hotfix.sh')
-rwxr-xr-x | keyboard/ergodox_ez/190hotfix.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboard/ergodox_ez/190hotfix.sh b/keyboard/ergodox_ez/190hotfix.sh new file mode 100755 index 0000000000..bdc3adce22 --- /dev/null +++ b/keyboard/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! |