From c0e88026fc10d6de8712b54a19979209e7daa31c Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 23 Feb 2007 05:59:50 +0000 Subject: [PATCH] 2007-02-22 Alex Roitman * output/Makefile.am: Write rule for manual website creation. svn: r8215 --- gramps2/help/ChangeLog | 3 +++ gramps2/help/output/Makefile.am | 37 ++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/gramps2/help/ChangeLog b/gramps2/help/ChangeLog index 5664b81e0..ef89006fe 100644 --- a/gramps2/help/ChangeLog +++ b/gramps2/help/ChangeLog @@ -1,3 +1,6 @@ +2007-02-22 Alex Roitman + * output/Makefile.am: Write rule for manual website creation. + 2007-02-16 Alex Roitman * help/nl: Add svn:ignore property. * various: Add stuff for generating html and pdf output. diff --git a/gramps2/help/output/Makefile.am b/gramps2/help/output/Makefile.am index e0dcd5ba8..c9c2c5991 100644 --- a/gramps2/help/output/Makefile.am +++ b/gramps2/help/output/Makefile.am @@ -1,8 +1,43 @@ # This is the help/output level Makefile for gramps # $Id$ +BRANCH = 2.2 +HELP_LINGUAS = C fr nb sk nl + +# admon images to copy +ADMON_IMAGES = note.png tip.png warning.png + +# Docbook stuff +chunkxsl = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl +admonimgdir = /usr/share/xml/docbook/stylesheet/nwalsh/images/ + html: - echo "This is a placeholder for making HTML" + rm -rf gramps-manual # Clean up the output dir + for lang in $(HELP_LINGUAS) ; do \ + xsltproc -o gramps-manual/$(BRANCH)/$$lang/index.html \ + --stringparam chunker.output.encoding UTF-8 \ + --stringparam html.stylesheet ../../gramps-help-screen.css \ + --stringparam admon.graphics 1 \ + --stringparam admon.graphics.path ../../images/ \ + --stringparam navig.graphics 1 \ + --stringparam navig.graphics.extension .png \ + --stringparam navig.graphics.path ../../images/ \ + $(chunkxsl) ../$$lang/gramps.xml ; \ + mkdir gramps-manual/$(BRANCH)/$$lang/figures ; \ + cp -R ../$$lang/figures/*.png \ + gramps-manual/$(BRANCH)/$$lang/figures/ ; \ + echo "Done with html for $$lang" ; \ + done + + mv gramps-manual/$(BRANCH)/C gramps-manual/$(BRANCH)/en + + mkdir gramps-manual/images + cp htmlpic/* gramps-manual/images/ + for img in $(ADMON_IMAGES) ; do \ + cp $(admonimgdir)/$$img gramps-manual/images/ ; \ + done + + cp gramps-help-screen.css gramps-manual/ pdf: echo "This is a placeholder for making PDF"