Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sed fix for OS X

  • Loading branch information...
commit 9277faacf06b440e4b2914aba17ff2780e3cd4c4 1 parent f15109b
@traviskaufman traviskaufman authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 build/build.sh
View
8 build/build.sh
@@ -3,4 +3,10 @@ node r.js -o build.js
node r.js -o cssIn=../css/styles.css out=output/css/styles.css
cp ../index.html output/index.html
-sed -i 's/js\/libs\/require\/require.js/http:\/\/requirejs.org\/docs\/release\/1.0.5\/minified\/require.js/g' output/index.html
+SEDCMD='sed -i'
+if [[ $OSTYPE == *"darwin"* ]]; then
+ SEDCMD=$SEDCMD' .tmp'
+fi
+SEDCMD=$SEDCMD' s/js\/libs\/require\/require.js/http:\/\/requirejs.org\/docs\/release\/1.0.5\/minified\/require.js/g output/index.html'
+$SEDCMD
+rm -f output/*.tmp
Please sign in to comment.
Something went wrong with that request. Please try again.