Skip to content

Commit

Permalink
have update_requireJS update sed command in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
traviskaufman committed Jul 16, 2012
1 parent fd6493a commit 5fcabb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/build.sh
Expand Up @@ -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
3 changes: 3 additions & 0 deletions build/update_requirejs.sh
Expand Up @@ -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.