From: Michael Smith Date: Fri, 27 Jul 2007 07:00:22 +0000 (+0000) Subject: - Added the "tag" make target (unfinished) for tagging releases. X-Git-Tag: release/1.79.1~6^2~1848 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=517498cc6c4ff1bf58bda83f064e78572a40b665;p=docbook-dsssl - Added the "tag" make target (unfinished) for tagging releases. - Renamed get-element.xsl to eval-xpath.xsl and modified it to be capable of getting string value of a node based on an XPath expression provided on the command line. - Removed get-param.xsl as changes to the xsl/VERSION file make get-params.xsl obsolete. --- diff --git a/releasetools/Targets.mk b/releasetools/Targets.mk index 83edd53dc..3f89748bc 100644 --- a/releasetools/Targets.mk +++ b/releasetools/Targets.mk @@ -107,7 +107,7 @@ else distrib: all $(DISTRIB_DEPENDS) $(NEWSFILE) endif -release: distrib $(RELEASE_DEPENDS) +release: distrib $(RELEASE_DEPENDS) tag #newversion: #ifeq ($(CVSCHECK),) @@ -147,7 +147,7 @@ else endif ifeq ($(OFFLINE),yes) -zip: +zip: tag else zip: ChangeHistory.xml.zip endif @@ -262,6 +262,17 @@ install: upload-to-sf-incoming upload-to-project-webspace announce: RELEASE-NOTES-PARTIAL.txt $(RELEASE_ANNOUNCE) $(RELVER) $(ANNOUNCE_RECIPIENTS) +tag: + if [ -z "$(svn status)" ]; \ + then echo "$(SVN) $(SVN_OPTS) delete $(REPOSITORY_ROOT)/tags/$(TAG)/$(DISTRO)"; \ + echo "$(SVN) $(SVN_OPTS) copy -r $(REVISION) $(DISTRO_URL) $(REPOSITORY_ROOT)/tags/$(TAG)/$(DISTRO)"; \ + else \ + echo "Unversioned or uncommitted files found. Before making the"; \ + echo "zip target, either delete the following files, add them to"; \ + echo "the repository, or add them to the svn:ignore properties for"; \ + echo "their parent directories."; \ + fi + release-clean: clean $(MAKE) -C docsrc release-clean $(RM) TERMS.xml diff --git a/releasetools/Variables.mk b/releasetools/Variables.mk index f1d5648ad..5799ca313 100644 --- a/releasetools/Variables.mk +++ b/releasetools/Variables.mk @@ -69,10 +69,11 @@ SVNLOG2DOCBOOK=$(DOCBOOK_SVN)/releasetools/svnlog2docbook.xsl SVN_INFO_FILE=.svninfo.xml -PREVIOUS_RELEASE=$(shell $(XSLTPROC) --stringparam param 'PreviousRelease' $(GETPARAM) VERSION) +PREVIOUS_RELEASE=$(shell $(XSLTPROC) --stringparam get PreviousRelease VERSION VERSION) -REPOSITORY_ROOT=$(shell $(XSLTPROC) --stringparam element root $(GETELEMENT) $(SVN_INFO_FILE)) -DISTRO_URL=$(shell $(XSLTPROC) --stringparam element url $(GETELEMENT) $(SVN_INFO_FILE)) +REPOSITORY_ROOT=$(shell $(XSLTPROC) --stringparam expression //root $(EVALXPATH) $(SVN_INFO_FILE)) +DISTRO_URL=$(shell $(XSLTPROC) --stringparam expression //url $(EVALXPATH) $(SVN_INFO_FILE)) +REVISION=$(shell $(XSLTPROC) --stringparam expression //commit@revision $(EVALXPATH) $(SVN_INFO_FILE)) DISTRO_PARENT_URL=$(dir $(basename $(DISTRO_URL))) # stylesheet for stripping DB5 namespace @@ -99,7 +100,9 @@ DBLATEX_FLAGS = -b pdftex # file containing "What's New" info generated from Subversion log NEWSFILE=NEWS -PREVIOUS_REVISION=$(shell $(XSLTPROC) --stringparam param 'PreviousReleaseRevision' $(GETPARAM) VERSION) +PREVIOUS_REVISION=$(shell $(XSLTPROC) --stringparam get PreviousReleaseRevision VERSION VERSION) + +TAG=$(shell $(XSLTPROC) --stringparam get Tag VERSION VERSION) # determine RELVER automatically by: # @@ -202,8 +205,7 @@ GZIPFLAGS= XSLTPROC=xsltproc XSLTPROC_OPTS= -GETPARAM=$(DOCBOOK_SVN)/releasetools/get-param.xsl -GETELEMENT=$(DOCBOOK_SVN)/releasetools/get-element.xsl +EVALXPATH=$(DOCBOOK_SVN)/releasetools/eval-xpath.xsl XMLLINT=xmllint XMLLINT_OPTS=--noent diff --git a/releasetools/eval-xpath.xsl b/releasetools/eval-xpath.xsl new file mode 100644 index 000000000..97098a9bc --- /dev/null +++ b/releasetools/eval-xpath.xsl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/releasetools/get-element.xsl b/releasetools/get-element.xsl deleted file mode 100644 index b87d5fd3b..000000000 --- a/releasetools/get-element.xsl +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - diff --git a/releasetools/get-param.xsl b/releasetools/get-param.xsl deleted file mode 100644 index ab96eec1a..000000000 --- a/releasetools/get-param.xsl +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xsl/VERSION b/xsl/VERSION index ecb8abeb1..19530b1bd 100644 --- a/xsl/VERSION +++ b/xsl/VERSION @@ -2,10 +2,16 @@ + + + + docbook-xsl 1.72.0 @@ -45,13 +51,25 @@ Major feature enhancements - - - You must specify the sf-relid as a parameter. - - - - + + + + + + + + + + + + + + You must specify the sf-relid as a parameter. + + + + +