aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez/190hotfix.sh
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox_ez/190hotfix.sh')
-rw-r--r--keyboards/ergodox_ez/190hotfix.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/190hotfix.sh b/keyboards/ergodox_ez/190hotfix.sh
new file mode 100644
index 000000000..bdc3adce2
--- /dev/null
+++ b/keyboards/ergodox_ez/190hotfix.sh
@@ -0,0 +1,19 @@
1#!/bin/bash
2#a tool to fix broken keymaps as a result of pull request #190
3#changing the declaration of matrix_scan_user() and matrix_init_user()
4#
5#This script will save a copy of the specified keymap as keymap.c.bak
6#and then create a new keymap.c with the definion corrected.
7#this script must be run from the ergodox_ez directory
8if [ $# -ne 1 ]; then
9 echo $0: usage: ./190hotfix keymap_name
10 exit 1
11fi
12
13echo Saving backup as ./keymaps/$1/keymap.c.bak ...
14mv ./keymaps/$1/keymap.c ./keymaps/$1/keymap.c.bak
15
16echo Modifying ./keymaps/$1/keymap.c ...
17cat ./keymaps/$1/keymap.c.bak | sed -r 's/^void \* matrix_/void matrix_/'>./keymaps/$1/keymap.c
18
19echo Complete!