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/16 22:10:44 UTC

ios commit: [CB-1075] - Cordova 2.0 installer - rename old Xcode project templates to minimize confusion

Updated Branches:
  refs/heads/master 0d63aced9 -> 797c9a050


[CB-1075] - Cordova 2.0 installer - rename old Xcode project templates to minimize confusion


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

Branch: refs/heads/master
Commit: 797c9a050a837b191bbbc8747be06fe858eff2bd
Parents: 0d63ace
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Jul 16 13:10:37 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Jul 16 13:10:37 2012 -0700

----------------------------------------------------------------------
 CordovaInstaller/scripts/xcodevars.postinstall |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/797c9a05/CordovaInstaller/scripts/xcodevars.postinstall
----------------------------------------------------------------------
diff --git a/CordovaInstaller/scripts/xcodevars.postinstall b/CordovaInstaller/scripts/xcodevars.postinstall
index e1963d4..17ed162 100755
--- a/CordovaInstaller/scripts/xcodevars.postinstall
+++ b/CordovaInstaller/scripts/xcodevars.postinstall
@@ -27,3 +27,13 @@ defaults write com.apple.dt.Xcode IDESourceTreeDisplayNames -dict-add CORDOVALIB
 # Xcode 3
 defaults write com.apple.Xcode PBXApplicationwideBuildSettings -dict-add CORDOVALIB "$2"
 defaults write com.apple.Xcode PBXSourceTreeDisplayNames -dict-add CORDOVALIB ""
+
+# rename the existing Xcode 4 template
+
+XCODE4_TEMPLATE_FOLDER="$HOME/Library/Developer/Xcode/Templates/Project Templates/Application"
+EXISTING_XCODE4_TEMPLATE="$XCODE4_TEMPLATE_FOLDER/Cordova-based Application.xctemplate"
+RENAMED_XCODE4_TEMPLATE="$XCODE4_TEMPLATE_FOLDER/Cordova-based (pre 2.0) Application.xctemplate"
+
+if [ -d "$EXISTING_XCODE4_TEMPLATE" ]; then
+	mv "$EXISTING_XCODE4_TEMPLATE" "$RENAMED_XCODE4_TEMPLATE"
+fi
\ No newline at end of file