From: Norman Walsh Date: Thu, 10 Jan 2002 22:46:58 +0000 (+0000) Subject: Build tools X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44e25b7556bcf490a3173e4501704f0f8004afd7;p=docbook-dsssl Build tools --- diff --git a/testdocs/i18n/.cvsignore b/testdocs/i18n/.cvsignore new file mode 100644 index 000000000..40c19e89f --- /dev/null +++ b/testdocs/i18n/.cvsignore @@ -0,0 +1,2 @@ +*.pdf +titlepage-fo.xsl diff --git a/testdocs/i18n/Makefile b/testdocs/i18n/Makefile new file mode 100644 index 000000000..60787c5cd --- /dev/null +++ b/testdocs/i18n/Makefile @@ -0,0 +1,84 @@ +include ../../cvstools/Makefile.incl + +XSLT=$(CVSTOOLSROOT)/xslt --processor=xsltproc + +XSLHTML=../xsl/html/docbook.xsl +XSLFO=i18n-fo.xsl +XSLCHUNK=../xsl/html/chunk.xsl + +STYLEOPT= + +FORMATTER=xep + +RESULT=html + +ifeq ($(RESULT),html) + STYLE=$(XSLHTML) + USETIDY=1 +else + STYLE=$(XSLFO) + USETIDY=0 +endif + +all: i18n.pdf i18n.html index.html + +index.html: + $(XJPARSE) $< + $(XSLT) $< $(XSLCHUNK) $@ $(STYLEOPT) +ifeq ($(USETIDY),1) + $(TIDY) -iq -latin1 -mn *.html +endif + +%.html : %.xml + $(XJPARSE) $< + $(XSLT) $< $(XSLHTML) $@ $(STYLEOPT) +ifeq ($(USETIDY),1) + $(TIDY) -iq -latin1 -mn $@ +endif + +%.fo : %.xml $(XSLFO) titlepage-fo.xsl +ifeq ($(FORMATTER),tex) + $(XSLT) $< $(XSLFO) $@ passivetex.extensions=1 $(STYLEOPT) +else +ifeq ($(FORMATTER),fop) + $(XSLT) $< $(XSLFO) $@ fop.extensions=1 $(STYLEOPT) +else +ifeq ($(FORMATTER),xep) + $(XSLT) $< $(XSLFO) $@ xep.extensions=1 $(STYLEOPT) +else + $(XSLT) $< $(XSLFO) $@ $(STYLEOPT) +endif +endif +endif + +%.pdf : %.fo +ifeq ($(FORMATTER),tex) + pdftex "&pdfxmltex" $< + @if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \ + pdftex "&pdfxmltex" $< ; \ + fi + @if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \ + pdftex "&pdfxmltex" $< ; \ + fi +else +ifeq ($(FORMATTER),fop) + fop $< $@ +else +ifeq ($(FORMATTER),xep) + xep $< +else + echo How would you like me to make the PDF file? +endif +endif +endif + +titlepage-fo.xsl: titlepage-fo.xml + $(XSLT) $< ../../xsl/template/titlepage.xsl $@ + +clean: + rm -f *.html *.htm *.fo *.pdf *.ps *.rtf + rm -f *.log *.aux *.out *.tex *.dvi + rm -f mlang.xml mlang.sgm + rm -f toc.hhc htmlhelp.hhp htmlhelp.chm Index.hhk + rm -f HTML.index + rm -f jhelpidx.xml jhelpmap.jhm jhelpset.hs jhelptoc.xml diff --git a/testdocs/i18n/i18n-fo.xsl b/testdocs/i18n/i18n-fo.xsl new file mode 100644 index 000000000..20f01a942 --- /dev/null +++ b/testdocs/i18n/i18n-fo.xsl @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + : + + + , + + + + + + + + + + + + + + + ; + + + , + + + + + + +