cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/4] [CB-3443] OSX - cordova-VERSION.js -> cordova.js
Date Wed, 22 May 2013 20:44:08 GMT
Updated Branches:
  refs/heads/master b75ff8d2b -> f913897f4


http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/f913897f/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index 91435f3..a9dc91b 100755
--- a/bin/create
+++ b/bin/create
@@ -77,9 +77,7 @@ fi
 cp -r "$BINDIR/templates/project/" "$PROJECT_PATH"
 
 # Copy in the JS.
-cp "$CORDOVAFRAMEWORK_DIR/cordova.osx.js" "$PROJECT_PATH/www/cordova-$CDV_VER.js"
-# Change the filename reference in the html from cordova.osx.js -> cordova-VERSION.js.
-/usr/bin/sed -i "" "s/src[ 	]*=[ 	]*[\\'\"]cordova.osx.js[\\'\"]/src=\"cordova-${CDV_VER}.js\"/g"
"$PROJECT_PATH/www/index.html"
+cp "$CORDOVAFRAMEWORK_DIR/cordova.js" "$PROJECT_PATH/www/cordova.js"
 
 # 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

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/f913897f/bin/templates/project/www/index.html
----------------------------------------------------------------------
diff --git a/bin/templates/project/www/index.html b/bin/templates/project/www/index.html
index 48d3e36..e7a4c9e 100644
--- a/bin/templates/project/www/index.html
+++ b/bin/templates/project/www/index.html
@@ -33,7 +33,7 @@
                 <p class="event received">Device is Ready</p>
             </div>
         </div>
-        <script type="text/javascript" src="cordova.osx.js"></script>
+        <script type="text/javascript" src="cordova.js"></script>
         <script type="text/javascript" src="js/index.js"></script>
         <script type="text/javascript">
             app.initialize();


Mime
View raw message