Permalink
Browse files

have update_requireJS update sed command in build script

  • Loading branch information...
1 parent fd6493a commit 5fcabb9ab4a9d6ff278d424a6f1b1cc9c2b7bb08 @traviskaufman traviskaufman committed Jul 16, 2012
Showing with 5 additions and 1 deletion.
  1. +2 −1 build/build.sh
  2. +3 −0 build/update_requirejs.sh
View
@@ -3,10 +3,11 @@ 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
+REQUIRE_VERSION='1.0.5'
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=$SEDCMD' s/js\/libs\/require\/require.js/http:\/\/requirejs.org\/docs\/release\/'$REQUIRE_VERSION'\/minified\/require.js/g output/index.html'
$SEDCMD
rm -f output/*.tmp
@@ -29,3 +29,6 @@ else
rm -f ../js/libs/require/require.js.old
echo "requireJS has been updated and placed in its proper place in the libs folder"
fi
+
+sed -i "" "s/REQUIRE_PATH='[0-9]\.[0-9]\.[0-9]'/REQUIRE_PATH='$RJS_VERSION'/g" ./build.sh
+echo "Build script has been updated to use the latest requireJS version"

0 comments on commit 5fcabb9

Please sign in to comment.