From: Michael Smith Date: Fri, 1 Sep 2006 06:52:55 +0000 (+0000) Subject: Added reference.txt.gz and reference.pdf.gz files to the release build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=875d20cbbe0ba9616edfc99fdeb979ad96bb64db;p=docbook-dsssl Added reference.txt.gz and reference.pdf.gz files to the release build. --- diff --git a/xsl/Makefile b/xsl/Makefile index 4aae71a0b..a7a00a95e 100644 --- a/xsl/Makefile +++ b/xsl/Makefile @@ -12,7 +12,7 @@ DISTRIB_DEPENDS = website slides doc install.sh # 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 = extensions/xsltproc saxon8 extensions/build/ extensions/build2/ +DISTRIB_EXCLUDES = extensions/xsltproc doc/reference.txt$$ doc/reference.pdf$$ # value of DISTRIB_PACKAGES is a space-separated list of any # directory names that should be packaged as separate zip/tar diff --git a/xsl/doc/.cvsignore b/xsl/doc/.cvsignore index 2d19fc766..780629c3b 100644 --- a/xsl/doc/.cvsignore +++ b/xsl/doc/.cvsignore @@ -1 +1,5 @@ *.html +reference.pdf.gz +reference.txt.gz +reference.pdf +reference.txt diff --git a/xsl/doc/Makefile b/xsl/doc/Makefile index 04d738368..8787e6f1c 100644 --- a/xsl/doc/Makefile +++ b/xsl/doc/Makefile @@ -2,6 +2,18 @@ include ../../cvstools/Makefile.incl XSLTOPT= PROCOPT= +PDF_MAKER=xep +DOCBOOK_FILE_EXTENSION=.dbk +REFERENCE_MAKEFILE=../tools/make/Makefile.DocBook +FO_PARAMS = "--stringparam refentry.pagebreak 0" +HTML_PARAMS = "--stringparam html.longdesc 0 --param local.l10n.xml \"document('../common/l10n.xsl')\" --stringparam reference.autolabel '1' --stringparam toc.max.depth '1'" +TXT_MAKER = "LANG=C w3mmee" +TXT_MAKER_FLAGS = "-dump -config $(W3MMEECONFIG)" +W3MMEECONFIG = "../../releasetools/w3mmee_config" + +GZIP=gzip +GZIPFLAGS= + .PHONY : clean RSTYLE=../docsrc/reference.xsl @@ -9,7 +21,7 @@ VPATH=../docsrc DIRS=common refentry lib html fo manpages wordml slides website template pi -all: copyright.html warranty.html reference.html index.html +all: copyright.html warranty.html reference.html index.html reference.pdf.gz reference.txt.gz for i in $(DIRS) __bogus__; do \ if [ $$i != __bogus__ ] ; then \ echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \ @@ -31,10 +43,28 @@ reference.html: reference.xml $(RSTYLE) index.html: reference.html cp -pR $< $@ +reference.pdf: ../docsrc/reference.dbk $(REFERENCE_MAKEFILE) + $(MAKE) -f $(REFERENCE_MAKEFILE) ../docsrc/reference.pdf PDF_MAKER=$(PDF_MAKER) DOCBOOK_FILE_EXTENSION=$(DOCBOOK_FILE_EXTENSION) FO_PARAMS=$(FO_PARAMS) \ + && mv ../docsrc/reference.pdf . + +reference.txt: ../docsrc/reference.dbk $(REFERENCE_MAKEFILE) + $(MAKE) -f $(REFERENCE_MAKEFILE) ../docsrc/reference.txt TXT_MAKER=$(TXT_MAKER) TXT_MAKER_FLAGS=$(TXT_MAKER_FLAGS) DOCBOOK_FILE_EXTENSION=$(DOCBOOK_FILE_EXTENSION) HTML_PARAMS=$(HTML_PARAMS) \ + && mv ../docsrc/reference.txt . && $(RM) ../docsrc/reference.html + +reference.pdf.gz: reference.pdf + cat $< | $(GZIP) $(GZIPFLAGS) > $@ + +reference.txt.gz: reference.txt + cat $< | $(GZIP) $(GZIPFLAGS) > $@ + clean: - rm -f *.html + $(RM) *.html for i in $(DIRS) __bogus__; do \ if [ $$i != __bogus__ ] ; then \ echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i clean; \ fi \ done + $(RM) reference.pdf + $(RM) reference.txt + $(RM) reference.pdf.gz + $(RM) reference.txt.gz