NEWS.xml: ChangeLog.xml
$(XSLT) $< $(SVNLOG2DOCBOOK) $@ \
+ distro="$(DISTRO)" \
previous-release="$(PREVIOUS_RELEASE)" \
release-version="$(RELVER)" \
element.file="$(shell readlink -f $(DOCBOOK_ELEMENTS))" \
ChangeLog.xml:
$(SVN) $(SVN_OPTS) log --xml --verbose \
-r HEAD:$(PREVIOUS_REVISION) \
+ $(REPOSITORY_ROOT)/trunk \
+ $(DISTRO) $(DISTRIB_CHANGELOG_INCLUDES) \
| $(XMLLINT) $(XMLLINT_OPTS) --format - > $@
ChangeHistory.xml.zip: ChangeHistory.xml
<xsl:import href="../contrib/tools/tennison/modified-markup.xsl" />
<xsl:include href="../xsl/lib/lib.xsl" />
+ <!-- * name of main distro this changelog is for-->
+ <xsl:param name="distro"/>
+
<!-- * file containing DocBook XSL stylesheet param names -->
<xsl:param name="param.file"/>
<!-- * notes, then just add a "display name" for the subdirectory -->
<xsl:param
name="subsections"
- >Common Gentext Extensions FO HTML Highlighting HTMLHelp Lib Manpages Roundtrip Slides Website Params Profiling Template Tools</xsl:param>
+ >Gentext Common FO HTML HTMLHelp Lib Manpages Roundtrip Slides Website Params Highlighting Profiling Template Tools</xsl:param>
<sf:users>
<!-- * The sf:users structure associates Sourceforge usernames -->
<xsl:if test="not($subsection = '')">
<!-- * Output a sect2 for this subsection only if with find path names -->
<!-- * for changed files in this subsection -->
- <xsl:if test="logentry[paths/path[starts-with(.,concat('/trunk/xsl/',$dirname,'/'))]]">
+ <xsl:if test="logentry[paths/path[
+ starts-with(.,concat('/trunk/',$distro,'/',$dirname,'/'))
+ or starts-with(.,concat('/trunk/',$dirname,'/'))]]
+ ">
<sect2>
<!-- * the ID on each Sect2 is the release version plus the -->
<!-- * subsection name; for example, xml:id="snapshost_FO" -->
<xsl:template name="format.entries">
<xsl:param name="dirname"/>
<xsl:for-each
- select="logentry[paths/path[starts-with(.,concat('/trunk/xsl/',$dirname,'/'))]]">
+ select="
+ logentry[paths/path[
+ starts-with(.,concat('/trunk/',$distro,'/',$dirname,'/'))
+ or starts-with(.,concat('/trunk/',$dirname,'/'))]]
+ ">
<!-- * each Lisitem corresponds to a single commit -->
<listitem>
<xsl:text>
</xsl:text>
<alt>
<!-- * Only get path names for files that are in the subsection -->
<!-- * that we are currently formatting -->
- <xsl:for-each select="paths/path[starts-with(.,concat('/trunk/xsl/',$dirname,'/'))]">
+ <xsl:for-each select="
+ paths/path[
+ starts-with(.,concat('/trunk/',$distro,'/',$dirname,'/'))
+ or starts-with(.,concat('/trunk/',$dirname,'/'))]
+ ">
<xsl:apply-templates select="."/>
<xsl:if test="not(position() = last())">
<xsl:text>; </xsl:text>
DISTRO=xsl
+# value of DISTRIB_CHANGELOG_INCLUDES is a space-separated list of
+# any other top-level modules from which to log changes in the
+# NEWS and RELEASE-NOTES.* files for this distro
+DISTRIB_CHANGELOG_INCLUDES = gentext
+
# value of DISTRIB_DEPENDS is a space-separated list of any
# targets for this distro's "distrib" target to depend on
-DISTRIB_DEPENDS = gentext doc docsrc install.sh RELEASE-NOTES.txt RELEASE-NOTES.pdf
+DISTRIB_DEPENDS = extensions doc docsrc install.sh RELEASE-NOTES.txt RELEASE-NOTES.pdf
# value of ZIP_EXCLUDES is a space-separated list of any file or
# directory names (shell wildcards OK) that should be excluded
# from the zip file and tarball for the release
-DISTRIB_EXCLUDES = gentext/$$ extensions/xsltproc doc/reference.txt$$ reference.txt.html$$ doc/reference.fo$$ doc/reference.pdf$$ tools/xsl xhtml/html2xhtml.xsl
+DISTRIB_EXCLUDES = extensions/xsltproc doc/reference.txt$$ reference.txt.html$$ doc/reference.fo$$ doc/reference.pdf$$ tools/xsl xhtml/html2xhtml.xsl
# value of DISTRIB_PACKAGES is a space-separated list of any
# directory names that should be packaged as separate zip/tar
$(MAKE) -C doc RELVER=$(RELVER)
extensions:
- make -C ../xsl-java
- cp -pR ../xsl-java .
-
-gentext:
- cp -pR ../gentext .
+ $(MAKE) -C ../xsl-java
+ cp -pR ../xsl-java $@
clean:
for i in $(DIRS) __bogus__; do \
fi \
done
$(RM) -r extensions
- $(RM) -r gentext
$(MAKE) clean -C xhtml
$(MAKE) clean -C doc
$(MAKE) clean -C docsrc