adium 2107:6dcbf494dbd6: Use `hg parent` for identifying builds....

commits at adium.im commits at adium.im
Thu May 7 02:36:28 UTC 2009


details:	http://hg.adium.im/adium/rev/6dcbf494dbd6
revision:	2107:6dcbf494dbd6
author:		Zachary West <zacw at adium.im>
date:		Wed May 06 22:36:16 2009 -0400

Use `hg parent` for identifying builds. Fixes #11943.

diffstat:

 Adium.xcodeproj/project.pbxproj |  2 +-
 Release/Makefile                |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 93eace207ab3 -r 6dcbf494dbd6 Adium.xcodeproj/project.pbxproj
--- a/Adium.xcodeproj/project.pbxproj	Wed May 06 17:50:21 2009 -0700
+++ b/Adium.xcodeproj/project.pbxproj	Wed May 06 22:36:16 2009 -0400
@@ -9928,7 +9928,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin\nbuildid=\"`hg identify --id`\"\n\necho \"#define BUILDID $buildid\" > $SCRIPT_OUTPUT_FILE_0\necho \"#define BUILDDATE `date +%s`\" >> $SCRIPT_OUTPUT_FILE_0\necho \"#define WHOAMI `whoami`\" >> $SCRIPT_OUTPUT_FILE_0\n\n# Delete the intermediate Info.plist so that Xcode re-preprocesses the Info.plist with our updated macros.\n# Use -f because after a clean build, this file doesn't exist yet, so a plain rm would fail and stop the build.\nrm -f \"${CONFIGURATION_TEMP_DIR}/Adium.build/Preprocessed-Info.plist\"\n";
+			shellScript = "PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin\nbuildid=\"`hg parent --template {node\\|short}`\"\n\necho \"#define BUILDID $buildid\" > $SCRIPT_OUTPUT_FILE_0\necho \"#define BUILDDATE `date +%s`\" >> $SCRIPT_OUTPUT_FILE_0\necho \"#define WHOAMI `whoami`\" >> $SCRIPT_OUTPUT_FILE_0\n\n# Delete the intermediate Info.plist so that Xcode re-preprocesses the Info.plist with our updated macros.\n# Use -f because after a clean build, this file doesn't exist yet, so a plain rm would fail and stop the build.\nrm -f \"${CONFIGURATION_TEMP_DIR}/Adium.build/Preprocessed-Info.plist\"\n";
 		};
 /* End PBXShellScriptBuildPhase section */
 
diff -r 93eace207ab3 -r 6dcbf494dbd6 Release/Makefile
--- a/Release/Makefile	Wed May 06 17:50:21 2009 -0700
+++ b/Release/Makefile	Wed May 06 22:36:16 2009 -0400
@@ -54,7 +54,7 @@
 RELEASE_NAME_ESCAPED=Adium_$(VERSION_ESCAPED)
 TARBALL_DIR=adium-$(VERSION)
 
-REVISION = $(subst +,,r$(shell hg id -n))
+REVISION = r$(shell hg parent --template {rev})
 
 ifeq ($(NIGHTLY),TRUE)
 	ADIUM_DIR:=$(ADIUM_DIR)\ $(REVISION)




More information about the commits mailing list