You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/07/14 02:19:11 UTC

ios commit: Added Makefile target update-template to update the template in the bin directory automatically before packaging.

Updated Branches:
  refs/heads/master c0bc5d99a -> 0896a9491


Added Makefile target update-template to update the template in the bin directory automatically before packaging.


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/0896a949
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/0896a949
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/0896a949

Branch: refs/heads/master
Commit: 0896a94916546993b53f686b2f2f8ebef336a09e
Parents: c0bc5d9
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Jul 13 17:19:05 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Jul 13 17:19:05 2012 -0700

----------------------------------------------------------------------
 Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/0896a949/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 57119b9..8f06c5e 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,12 @@ check-utils:
 		@echo -e "Using Developer folder: \033[33m$(DEVELOPER)\033[m";
 		@echo -e "Using PackageMaker app: \033[33m$(PM_APP)\033[m";
 
-installer: check-utils clean check-wkhtmltopdf md-to-html
+update-template:
+	@$(RM_F) bin/templates/project/www/cordova-*.js		
+	@$(CP) -f CordovaLib/javascript/cordova.ios.js bin/templates/project/www/cordova-$(CDV_VER).js		
+	@find "bin/templates/project/www/index.html" | xargs grep 'src[ 	]*=[ 	]*[\\'\"]cordova-*.*.js[\\'\"]' -sl | xargs -L1 sed -i "" "s/src[ 	]*=[ 	]*[\\'\"]cordova-*.*.js[\\'\"]/src=\"cordova-${CDV_VER}.js\"/g"
+
+installer: check-utils clean check-wkhtmltopdf md-to-html update-template
 	@# remove the dist folder
 	@if [ -d "dist" ]; then \
 		$(CP) -Rf dist ~/.Trash; \