Permalink
Browse files

Merge pull request #24 from traviskaufman/osx_buildscript_fix

sed fix for OS X
  • Loading branch information...
2 parents f15109b + 9277faa commit a3e3173e1ef21cfcb5bf0af9efd7e10d16b8d6f3 @thomasdavis committed Jul 15, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 build/build.sh
View
@@ -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

0 comments on commit a3e3173

Please sign in to comment.