build to rely on it.
# $Id$
debug:
+ echo $(PREVIOUS_RELEASE)
+ echo $(PREVIOUS_REVISION)
.PHONY: ChangeLog.xml ChangeHistory.xml
$(NEWSFILE): NEWS.html
LANG=C $(BROWSER) $(BROWSER_OPTS) $< > $@
-ChangeLog.xml: PreviousRevision
+ChangeLog.xml:
$(SVN) $(SVN_OPTS) log --xml --verbose \
-r HEAD:$(PREVIOUS_REVISION) \
| $(XMLLINT) $(XMLLINT_OPTS) --format - > $@
release-clean: clean
$(MAKE) -C docsrc release-clean
- $(RM) PreviousRevision
$(RM) TERMS.xml
$(RM) $(NEWSFILE)
$(RM) NEWS.html
# to generate NEWS file(s) and releases notes
SVNLOG2DOCBOOK=$(DOCBOOK_SVN)/releasetools/svnlog2docbook.xsl
-PREVIOUS_RELEASE=$(shell if [ -f PreviousRelease ];then cat PreviousRelease; fi)
+PREVIOUS_RELEASE=$(shell $(XSLTPROC) --stringparam param 'PreviousRelease' $(GETPARAM) VERSION)
# stylesheet for stripping DB5 namespace
STRIP_NS=$(DOCBOOK_SVN)/xsl/common/stripns.xsl
# file containing "What's New" info generated from Subversion log
NEWSFILE=NEWS
-PREVIOUS_REVISION=$(shell if [ -f PreviousRevision ];then cat PreviousRevision; fi)
+PREVIOUS_REVISION=$(shell $(XSLTPROC) --stringparam param 'PreviousReleaseRevision' $(GETPARAM) VERSION)
# determine RELVER automatically by:
#
Makefile.common \
Makefile.incl \
Makefile.param \
- PreviousRelease \
- PreviousRevision \
ChangeLog\.xml \
README\.SVN \
RELEASE-NOTES\.fo \
XSLTPROC=xsltproc
XSLTPROC_OPTS=
+GETPARAM=$(DOCBOOK_SVN)/releasetools/get-param.xsl
+
XMLLINT=xmllint
XMLLINT_OPTS=
XINCLUDE=$(XMLLINT) $(XMLLINT_OPTS) --xinclude
--- /dev/null
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+ <!-- ********************************************************************
+ $Id$
+ ******************************************************************** -->
+
+ <xsl:output method="text"/>
+ <xsl:param name="param"/>
+
+ <xsl:template match="/">
+ <xsl:param name="target" select="//*[@*[local-name() = 'name'] = $param]"/>
+ <xsl:choose>
+ <xsl:when test="contains($target, 'Revision')">
+ <xsl:value-of select="substring-before(substring-after($target, 'Revision: '), ' ')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$target"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
+++ /dev/null
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
- <!-- ********************************************************************
- $Id$
- ********************************************************************
-
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://docbook.sf.net/release/xsl/current/ for
- copyright and other information.
-
- ******************************************************************** -->
-
- <xsl:output method="text"/>
-
- <xsl:template match="/">
- <!-- * 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="concat(/lists/list/entry/commit/@revision,'
')"/>
- </xsl:template>
-
-</xsl:stylesheet>
<xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
<xsl:param name="DistroTitle" select="string(document('')//fm:Branch[1])"/>
<xsl:param name="DistroName">docbook-xsl</xsl:param>
+<xsl:param name="PreviousRelease">1.72.0</xsl:param>
+<xsl:param name="PreviousReleaseRevision">6553</xsl:param>
+<xsl:param name="Revision">$Revision$</xsl:param>
<xsl:param name="sf-relid" select="0"/>
<xsl:strip-space elements="fm:*"/>
<fm:project>
<fm:Project>DocBook</fm:Project>
<fm:Branch>XSL Stylesheets</fm:Branch>
- <fm:Version>1.72.1+pre</fm:Version>
+ <fm:Version>1.72.1-pre</fm:Version>
<!--
<fm:License>MIT/X Consortium License</fm:License>
-->