summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorSam Perman <sam@permans.com>2018-01-27 16:49:43 +0100
committerJack Humbert <jack.humb@gmail.com>2018-01-28 18:23:28 +0100
commitf0f991dd89733b7dc9ca54042923c031b3b3ca73 (patch)
tree0659ee4ef6485ea9a05f6c964927d2a430b289be /util
parentbceffdefcac30dd8b08ec3b803af372cbf254a7b (diff)
downloadqmk_firmware-f0f991dd89733b7dc9ca54042923c031b3b3ca73.tar.gz
qmk_firmware-f0f991dd89733b7dc9ca54042923c031b3b3ca73.tar.xz
update sed to work on mac
See https://stackoverflow.com/questions/19456518/invalid-command-code-despite-escaping-periods-using-sed
Diffstat (limited to 'util')
-rwxr-xr-xutil/new_project.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/new_project.sh b/util/new_project.sh
index 0f507b679..11218440b 100755
--- a/util/new_project.sh
+++ b/util/new_project.sh
@@ -15,8 +15,8 @@ KEYBOARD_UPPERCASE=$(echo $1 | awk '{print toupper($0)}')
cp -r quantum/template keyboards/$KEYBOARD
mv keyboards/$KEYBOARD/template.c keyboards/$KEYBOARD/$KEYBOARD.c
mv keyboards/$KEYBOARD/template.h keyboards/$KEYBOARD/$KEYBOARD.h
-find keyboards/${KEYBOARD} -type f -exec sed -i "s;%KEYBOARD%;$KEYBOARD;g" {} \;
-find keyboards/${KEYBOARD} -type f -exec sed -i "s;%KEYBOARD_UPPERCASE%;$KEYBOARD_UPPERCASE;g" {} \;
+find keyboards/${KEYBOARD} -type f -exec sed -i'' -e "s;%KEYBOARD%;$KEYBOARD;g" {} \;
+find keyboards/${KEYBOARD} -type f -exec sed -i'' -e "s;%KEYBOARD_UPPERCASE%;$KEYBOARD_UPPERCASE;g" {} \;
echo "######################################################"
echo "# /keyboards/$KEYBOARD project created. To start"