summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-07-06 21:54:24 +0000
committerFelipe Heidrich <fheidric>2009-07-06 21:54:24 +0000
commitf5d697524dc90882551a96b03e6d1da4f6c2f6a9 (patch)
tree09310d04b09fcef1fdcd5d082b1d1c561b9f2987
parent28377648a49763e4f7d47df57c32cf8187c502fb (diff)
downloadeclipse.platform.swt-f5d697524dc90882551a96b03e6d1da4f6c2f6a9.tar.gz
eclipse.platform.swt-f5d697524dc90882551a96b03e6d1da4f6c2f6a9.tar.xz
eclipse.platform.swt-f5d697524dc90882551a96b03e6d1da4f6c2f6a9.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt.tools/tasks/build.xml23
-rw-r--r--bundles/org.eclipse.swt.tools/tasks/swtmap.xls22
2 files changed, 22 insertions, 23 deletions
diff --git a/bundles/org.eclipse.swt.tools/tasks/build.xml b/bundles/org.eclipse.swt.tools/tasks/build.xml
index cf6d650605..dd9ee25fd7 100644
--- a/bundles/org.eclipse.swt.tools/tasks/build.xml
+++ b/bundles/org.eclipse.swt.tools/tasks/build.xml
@@ -300,15 +300,16 @@
</target>
<target name="get_tag">
- <property name="tmpdir" value="C:/BUILD/swt-builddir/tmp/gettag"/>
+ <property name="tmpdir" value="C:/BUILD/swt-builddir/tmp/tag"/>
<delete dir="${tmpdir}" quiet="true"/>
<mkdir dir="${tmpdir}"/>
- <property name="version_file" value="org.eclipse.swt/.project"/>
+ <property name="rlog_file" value="org.eclipse.swt/.project"/>
+ <property name="version_file" value="org.eclipse.swt/Eclipse SWT/common/library/make_common.mak"/>
<property name="tags_file" value="${tmpdir}/tags.txt"/>
<cvs cvsRoot="${cvsRootAnon}" cvsrsh="${cvsRsh}" failonerror="true" output="${tags_file}">
<commandline>
<argument value="rlog"/>
- <argument value="${version_file}"/>
+ <argument value="${rlog_file}"/>
</commandline>
</cvs>
<cvs cvsRoot="${cvsRootAnon}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
@@ -345,7 +346,7 @@
</not>
</condition>
</fail>
- <!--delete dir="${tmpdir}" quiet="true"/-->
+ <delete dir="${tmpdir}" quiet="true"/>
<echo>New tag=${version_tag}</echo>
</target>
@@ -455,7 +456,7 @@
<mkdir dir="${tmpdir}"/>
<!-- update and commit the buildnotes_swt.html file -->
- <!--antcall target="update_buildnotes"/-->
+ <antcall target="update_buildnotes"/>
<!-- tags fragments and plugins listed in swt.map -->
<property name="map" value="org.eclipse.releng/maps/swt.map"/>
@@ -468,6 +469,9 @@
</commandline>
</cvs>
<copy file="${tmpdir}/${map}" tofile="${map_copy}"/>
+
+ <copy file="${tmpdir}/${map}" tofile="${tmpdir}/map.txt"/>
+
<replace file="${map_copy}" token="=" value="&quot; old=&quot;"/>
<replace file="${map_copy}" token="fragment@" value="&lt;element project=&quot;"/>
<replace file="${map_copy}" token="plugin@" value="&lt;element project=&quot;"/>
@@ -482,13 +486,10 @@
<param name="cvsRoot" expression="${cvsRoot}"/>
<param name="cvsRsh" expression="${cvsRsh}"/>
<param name="version_tag" expression="${version_tag}"/>
+ <param name="map" expression="${tmpdir}/map.txt"/>
</xslt>
- <!--ant antfile="${tmpdir}/tagCommand.xml"/-->
-
-
- <!-- update and commit the swt.map file -->
- <!-- TODO ignore gtk.linux.s390, gtk.linux.s390x, swt.gtk.linux.ia64 and motif.hpux.PA_RISC -->
- <replaceregexp file="${tmpdir}/${map}" match="v\d\d\d\d\w?" replace="${version_tag}" byline="true"/>
+ <ant antfile="${tmpdir}/tagCommand.xml"/>
+ <!--ant antfile="${tmpdir}/tagCommand.xml" target="update_map"/-->
<!--cvs cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
diff --git a/bundles/org.eclipse.swt.tools/tasks/swtmap.xls b/bundles/org.eclipse.swt.tools/tasks/swtmap.xls
index 30ac94263c..cf71d8b869 100644
--- a/bundles/org.eclipse.swt.tools/tasks/swtmap.xls
+++ b/bundles/org.eclipse.swt.tools/tasks/swtmap.xls
@@ -51,16 +51,16 @@
<xsl:if test="@project != 'org.eclipse.swt.gtk.linux.s390x'">
<xsl:if test="@project != 'org.eclipse.swt.gtk.linux.ia64'">
<xsl:if test="@project != 'org.eclipse.swt.motif.hpux.PA_RISC'">
- <replaceregexp byline="true">
- <xsl:attribute name="match">
- <xsl:value-of select="@project"/>=v\d\d\d\d[a-z]?,
- </xsl:attribute>
- <xsl:attribute name="replace">
- <xsl:value-of select="@project"/>=<xsl:value-of select="$version_tag"/>,
- </xsl:attribute>
- <xsl:attribute name="file">
- <xsl:value-of select="$map"/>
- </xsl:attribute>
+ <replaceregexp byline="true">
+ <xsl:attribute name="file">
+ <xsl:value-of select="$map"/>
+ </xsl:attribute>
+ <xsl:attribute name="match">
+ \Q<xsl:value-of select="@project"/>\E=v\d\d\d\d[a-z]?
+ </xsl:attribute>
+ <xsl:attribute name="replace">
+ <xsl:value-of select="@project"/>=<xsl:value-of select="$version_tag"/>
+ </xsl:attribute>
</replaceregexp>
</xsl:if>
</xsl:if>
@@ -69,8 +69,6 @@
</xsl:for-each>
</target>
-
-
</project>
</xsl:template>
</xsl:stylesheet>