summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-17 15:02:10 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-17 15:16:28 -0700
commitc00dc0165d9730b64ae1de42da0bae29c87ee175 (patch)
tree79a7a04f2c79d90e7426a48b867a9d216a1786e9
parent8b5f4cf211ff980f796058bef0ec1696e894b033 (diff)
downloadmc-c00dc0165d9730b64ae1de42da0bae29c87ee175.tar.gz
Work around OSX sed differences.
It doesnt expand \n the way Linux sed does.
-rwxr-xr-xgenbootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/genbootstrap.sh b/genbootstrap.sh
index 2b871c1..fafee06 100755
--- a/genbootstrap.sh
+++ b/genbootstrap.sh
@@ -17,7 +17,7 @@ echo 'pwd=`pwd`' >> bootstrap.sh
sed "s:Leaving directory.*:\tcd \$pwd:g" | \
sed "s:\\([a-zA-Z0-9_-]*\\)+.*:\`\$pwd/sysselect.sh \1\`:" | \
grep $'^\t' | \
- sed 's/.*/echo &\n&/' | \
+ sed $'s/.*/echo &\\\n&/' | \
tee -a bootstrap.sh
chmod +x bootstrap.sh
rm ./xmbld