Improved hg tagging automation to deal with the unfortunate situation of a package overwriting it's own source files during the build.
authorSimon Howkins <simonh@symbian.org>
Tue, 06 Jul 2010 17:02:03 +0100
changeset 1152 08f7282dae54
parent 1151 b15dfb01fee6
child 1154 71d95425fe65
child 1156 60b4235c5481
Improved hg tagging automation to deal with the unfortunate situation of a package overwriting it's own source files during the build.
common/templates/tag-hg-code.ant.xml.ftl
--- a/common/templates/tag-hg-code.ant.xml.ftl	Tue Jul 06 16:30:27 2010 +0100
+++ b/common/templates/tag-hg-code.ant.xml.ftl	Tue Jul 06 17:02:03 2010 +0100
@@ -61,6 +61,8 @@
 				<arg value="-i"/>
 				<arg value="${pkg_detail.dst}"/>
 			</exec>
+			<!-- Remove any '+' on the end of the hash (indicating that the package overwrote some of its own source files during the build) -->
+			<propertyregex property="hash12.${count}" override="true" input="${dollar}{hash12.${count}}" regexp="\+$" replace=""/>
 			<!-- Get the full hash id -->
 			<exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="hash40.${count}" logError="true">
 				<arg value="log"/>