From b81bb47f5e20ac2e01ee9dcd222ec96608ad23b6 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 23 Jun 2007 01:38:26 +0000 Subject: [PATCH] Refined mechanism for generating NEWS and RELEASENOTES.* files such that those generated files for the xsl release will now also track changes to files in the gentext module (e.g., new locales added or changed). This adds a "Gentext" section to the docbook-xsl release notes. --- releasetools/Targets.mk | 3 +++ releasetools/Variables.mk | 2 ++ releasetools/svnlog2docbook.xsl | 22 ++++++++++++++++++---- xsl/Makefile | 17 +++++++++-------- 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/releasetools/Targets.mk b/releasetools/Targets.mk index 752396f50..ea231289f 100644 --- a/releasetools/Targets.mk +++ b/releasetools/Targets.mk @@ -38,6 +38,7 @@ $(MARKUP_XSL): NEWS.xml: ChangeLog.xml $(XSLT) $< $(SVNLOG2DOCBOOK) $@ \ + distro="$(DISTRO)" \ previous-release="$(PREVIOUS_RELEASE)" \ release-version="$(RELVER)" \ element.file="$(shell readlink -f $(DOCBOOK_ELEMENTS))" \ @@ -52,6 +53,8 @@ $(NEWSFILE): NEWS.html 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 diff --git a/releasetools/Variables.mk b/releasetools/Variables.mk index 8bc0063f9..b36c0ab73 100644 --- a/releasetools/Variables.mk +++ b/releasetools/Variables.mk @@ -10,6 +10,8 @@ include $(DOCBOOK_SVN)/buildtools/Makefile.incl +REPOSITORY_ROOT=https://docbook.svn.sourceforge.net/svnroot/docbook + CATALOGMANAGER=$(DOCBOOK_SVN)/releasetools/.CatalogManager.properties.example INSTALL_SH=$(DOCBOOK_SVN)/releasetools/install.sh MAKECATALOG=$(DOCBOOK_SVN)/releasetools/make-catalog.xsl diff --git a/releasetools/svnlog2docbook.xsl b/releasetools/svnlog2docbook.xsl index e7dc47eb2..840523670 100644 --- a/releasetools/svnlog2docbook.xsl +++ b/releasetools/svnlog2docbook.xsl @@ -22,6 +22,9 @@ + + + @@ -70,7 +73,7 @@ Common Gentext Extensions FO HTML Highlighting HTMLHelp Lib Manpages Roundtrip Slides Website Params Profiling Template Tools + >Gentext Common FO HTML HTMLHelp Lib Manpages Roundtrip Slides Website Params Highlighting Profiling Template Tools @@ -168,7 +171,10 @@ - + @@ -217,7 +223,11 @@ + select=" + logentry[paths/path[ + starts-with(.,concat('/trunk/',$distro,'/',$dirname,'/')) + or starts-with(.,concat('/trunk/',$dirname,'/'))]] + "> @@ -230,7 +240,11 @@ - + ; diff --git a/xsl/Makefile b/xsl/Makefile index 3043ae919..41f830292 100644 --- a/xsl/Makefile +++ b/xsl/Makefile @@ -5,14 +5,19 @@ include ../releasetools/Variables.mk 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 @@ -59,11 +64,8 @@ doc: docsrc $(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 \ @@ -72,7 +74,6 @@ clean: fi \ done $(RM) -r extensions - $(RM) -r gentext $(MAKE) clean -C xhtml $(MAKE) clean -C doc $(MAKE) clean -C docsrc -- 2.40.0