ChangeHistory.xml files.
$(NEWSFILE): NEWS.html
LANG=C $(BROWSER) $(BROWSER_OPTS) $< > $@
-#ChangeLog.xml: LatestTag
-# $(CVS2CL) $(CVS2CL_OPTS) \
-# --delta $(LATEST_TAG):HEAD --stdout --xml -g -q > $@
+ChangeLog.xml: PreviousRelease
+ $(SVN) $(SVN_OPTS) log --xml --verbose \
+ -r HEAD:$(PREVIOUS_RELEASE) \
+ | $(XMLLINT) $(XMLLINT_OPTS) --format - > $@
-LatestTag:
-# Note that one of the old commit messsage in the cvs log contains
-# a ^Z (x1a) character, which is not legal in XML, so it must
-# strip it out before using it with any XML processing apps
-# $(CVS2CL) $(CVS2CL_OPTS) --stdout --xml -g -q \
-# | $(SED) $(SED_OPTS) 's/\x1a//g' \
-# | $(XSLTPROC) $(GET_LATEST_TAG) - > $@
+PreviousRelease:
+ $(SVN) $(SVN_OPTS) list --xml VERSION \
+ | $(XSLTPROC) $(GET_PREVIOUS_RELEASE) - > $@
ChangeHistory.xml.zip: ChangeHistory.xml
$(ZIP) $(ZIP_OPTS) $@ $<
# ChangeHistory.xml holds the whole change history for the module,
# including all subdirectories
ChangeHistory.xml:
-# $(CVS2CL) $(CVS2CL_OPTS) \
-# --stdout --xml -g -q > $@
+ $(SVN) $(SVN_OPTS) log --xml --verbose > $@
.CatalogManager.properties.example:
cp -p $(CATALOGMANAGER) .CatalogManager.properties.example
# script, and using it to generate NEWS file(s) and releases notes
CVS2CL2DOCBOOK=$(DOCBOOK_SVN)/releasetools/cvs2cl2docbook.xsl
-# stylesheet used for determining the latest cvs tag in cvs log
-GET_LATEST_TAG=$(DOCBOOK_SVN)/releasetools/get-latest-tag.xsl
+# stylesheet used for determining the revision number of the
+# last/latest release
+GET_PREVIOUS_RELEASE=$(DOCBOOK_SVN)/releasetools/get-previous-release.xsl
# stylesheet for stripping DB5 namespace
STRIP_NS=$(DOCBOOK_SVN)/xsl/common/stripns.xsl
# file containing "What's New" info generated from CVS log
NEWSFILE=NEWS
-LATEST_TAG=$(shell if [ -f LatestTag ];then cat LatestTag; fi)
+PREVIOUS_RELEASE=$(shell if [ -f PreviousRelease ];then cat PreviousRelease; fi)
# determine RELVER automatically by:
#
XMLLINT_OPTS=
XINCLUDE=$(XMLLINT) $(XMLLINT_OPTS) --xinclude
-CVS2CL=cvs2cl
-CVS2CL_OPTS=
+SVN=svn
+SVN_OPTS=
SED=sed
SED_OPTS=
<xsl:output method="text"/>
<xsl:template match="/">
- <!-- * Get the value of the first tagdatetag element in the document -->
- <!-- * that starts with a "V" (V1691, etc.). That is, hopefully, the -->
- <!-- * tag for the previous release. -->
- <xsl:value-of select="(//*[local-name() = 'tagdatetag'][starts-with(.,'V')])[1]"/>
+ <!-- * The value of the "revision" attribute on the commit element -->
+ <!-- * indicates the last time the file was checked in; since this -->
+ <!-- * is the VERSION file, and that only gets checked in once per -->
+ <!-- * release, that value should indicate the revision number -->
+ <!-- * associated with the latest release. -->
+ <xsl:value-of select="/lists/list/entry/commit/@revision"/>
</xsl:template>
</xsl:stylesheet>