diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-07-07 22:28:28 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-07-29 20:48:04 +0300 |
commit | 9af995c59b2655fa347e43b1eab2122e72ef7fe3 (patch) | |
tree | f76ccbd3ab8c911ae851bb83d13173c5755c7162 /keyboards/ergodox/ez/190hotfix.sh | |
parent | 30003d48f9a04676b81bf2980a235106ec7886b0 (diff) | |
download | firmware-9af995c59b2655fa347e43b1eab2122e72ef7fe3.tar.gz firmware-9af995c59b2655fa347e43b1eab2122e72ef7fe3.tar.bz2 firmware-9af995c59b2655fa347e43b1eab2122e72ef7fe3.zip |
Initial structure for Ergodox as subprojects
Only the EZ default keymaps compiles at the moment though.
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 000000000..bdc3adce2 --- /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! |