Updated Branches: refs/heads/master c65aadf52 -> 9c836fbf0
Add version number to cordova.ios.js in create script. It was lost by my last CL. Relevant issue: CB-1822 Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/9c836fbf Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/9c836fbf Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/9c836fbf Branch: refs/heads/master Commit: 9c836fbf0e2422472c65dc1952ab6dcf0cd6ed73 Parents: c65aadf Author: Andrew Grieve <[email protected]> Authored: Wed Nov 7 21:54:14 2012 -0500 Committer: Andrew Grieve <[email protected]> Committed: Wed Nov 7 21:54:14 2012 -0500 ---------------------------------------------------------------------- bin/create | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/9c836fbf/bin/create ---------------------------------------------------------------------- diff --git a/bin/create b/bin/create index 3234f1c..b53c8a2 100755 --- a/bin/create +++ b/bin/create @@ -59,6 +59,7 @@ done BINDIR=$( cd "$( dirname "$SCRIPT" )" && pwd ) CORDOVALIB_DIR="$BINDIR/../CordovaLib" +CDV_VER=$(cat $CORDOVALIB_DIR/VERSION) PROJECT_PATH=$1 PACKAGE=$2 @@ -76,7 +77,9 @@ fi cp -r "$BINDIR/templates/project/" "$PROJECT_PATH" # Copy in the JS. -cp "$CORDOVALIB_DIR/cordova.ios.js" "$PROJECT_PATH/www" +cp "$CORDOVALIB_DIR/cordova.ios.js" "$PROJECT_PATH/www/cordova-$CDV_VER.js" +# Change the filename reference in the html from cordova.ios.js -> cordova-VERSION.js. +sed -i "" "s/src[ ]*=[ ]*[\\'\"]cordova.ios.js[\\'\"]/src=\"cordova-${CDV_VER}.js\"/g" "$PROJECT_PATH/www/index.html" # I've tried to be thorough in my documentation of the manual actions below... # on first brush it would seem that the right solution would be to brute force
