From d26925f226c1a085964029ef96971c5ae42cf9dd Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 10 Oct 2007 16:56:54 +0000 Subject: [PATCH] Adjusted packaging such that if Makefile.tests file exists, it gets renamed to Makefile and included in the package. --- releasetools/Targets.mk | 9 +++++++-- xsl/Makefile | 1 + xsl/Makefile.tests | 8 ++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/releasetools/Targets.mk b/releasetools/Targets.mk index e2d18d917..a65355e43 100644 --- a/releasetools/Targets.mk +++ b/releasetools/Targets.mk @@ -152,6 +152,12 @@ ifneq ($(DISTRIB_PACKAGES),) find . -print | grep "^./$$part/" | cut -c3- >> $(TMP)/tar.exclude; \ done endif +# if we find a Makefile.tests file, rename it to Makefile, and +# update the tar.exclude contents so that it doesn't get excluded + if [ -f Makefile.tests ]; then \ + cp -p Makefile.tests $(TMP)/docbook-$(DISTRO)-$(ZIPVER)/Makefile; \ + sed -i -r 's/^Makefile\$$$$//' $(TMP)/tar.exclude; \ + fi # tar up distro, then gzip/bzip/zip it $(TAR) cf$(TARFLAGS) - -X $(TMP)/tar.exclude * .[^.]* | (cd $(TMP)/docbook-$(DISTRO)-$(ZIPVER); $(TAR) xf$(TARFLAGS) -) umask 022; cd $(TMP) && $(TAR) cf$(TARFLAGS) - docbook-$(DISTRO)-$(ZIPVER) | gzip > docbook-$(DISTRO)-$(ZIPVER).tar.gz @@ -253,8 +259,7 @@ else @svn status endif -release-clean: clean - $(MAKE) -C docsrc release-clean +release-clean: clean $(RELEASE_CLEAN_TARGETS) $(RM) TERMS.xml $(RM) $(NEWSFILE) $(RM) NEWS.html diff --git a/xsl/Makefile b/xsl/Makefile index c7102205e..f4e1eefc3 100644 --- a/xsl/Makefile +++ b/xsl/Makefile @@ -43,6 +43,7 @@ DISTRIB_EXCLUDES = \ doc/HTML.manifest$$ \ tools/xsl \ xhtml/html2xhtml.xsl$$ \ + Makefile.tests \ README.BUILD \ RELEASE-NOTES-PARTIAL.txt \ .param.dbkns \ diff --git a/xsl/Makefile.tests b/xsl/Makefile.tests index 56277516a..4afdbf7e6 100644 --- a/xsl/Makefile.tests +++ b/xsl/Makefile.tests @@ -1,4 +1,12 @@ # $Id$ +# +# This makefile does a "smoketest" of stylesheets for various +# output formats in the DocBook XSL Stylesheets release package. +# It doesn't actually check the output -- it's just useful for +# confirming whether each XSLT transformation actually executes +# successfully without any errors. +# +# To use it, run "make check" or just "make" XSLTPROC=xsltproc XSLTPROC_FLAGS= -- 2.40.0