[75314] users/ryandesign/PCLauncher/PCLauncher.xcodeproj/project.pbxproj

ryandesign at macports.org ryandesign at macports.org
Fri Jan 21 02:51:51 PST 2011


Revision: 75314
          http://trac.macports.org/changeset/75314
Author:   ryandesign at macports.org
Date:     2011-01-21 02:51:50 -0800 (Fri, 21 Jan 2011)
Log Message:
-----------
Don't run svnversion if it's not a working copy; also rearrange script, quote arguments, hopefully better handle absence of Subversion

Modified Paths:
--------------
    users/ryandesign/PCLauncher/PCLauncher.xcodeproj/project.pbxproj

Modified: users/ryandesign/PCLauncher/PCLauncher.xcodeproj/project.pbxproj
===================================================================
--- users/ryandesign/PCLauncher/PCLauncher.xcodeproj/project.pbxproj	2011-01-21 10:26:53 UTC (rev 75313)
+++ users/ryandesign/PCLauncher/PCLauncher.xcodeproj/project.pbxproj	2011-01-21 10:51:50 UTC (rev 75314)
@@ -237,7 +237,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "SVNVERSION=$(which svnversion)\nPLISTBUDDY=/usr/libexec/PlistBuddy\n[ -x $PLISTBUDDY ] || PLISTBUDDY=/Library/Receipts/AdditionalEssentials.pkg/Contents/Resources/PlistBuddy\nif [ -x $SVNVERSION -a -x $PLISTBUDDY ]; then\n\tREV=`$SVNVERSION -nc | sed 's/^[^:]*://'`\n\t$PLISTBUDDY -c \"Set :CFBundleVersion $REV\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\nfi";
+			shellScript = "SVN=\"$(which svn 2>/dev/null)\"\n[ -x \"$SVN\" ] || exit\nSVNVERSION=\"$(which svnversion 2>/dev/null)\"\n[ -x \"$SVNVERSION\" ] || exit\nPLISTBUDDY=\"/usr/libexec/PlistBuddy\"\n[ -x \"$PLISTBUDDY\" ] || PLISTBUDDY=\"/Library/Receipts/AdditionalEssentials.pkg/Contents/Resources/PlistBuddy\"\n[ -x \"$PLISTBUDDY\" ] || exit\n$SVN info &>/dev/null || exit\nREV=`$SVNVERSION -nc | sed 's/^[^:]*://'`\n$PLISTBUDDY -c \"Set :CFBundleVersion $REV\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"";
 		};
 /* End PBXShellScriptBuildPhase section */
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110121/80d14d8d/attachment.html>


More information about the macports-changes mailing list