2007-02-17 02:46:14 +05:30
|
|
|
# This is the help/output level Makefile for gramps
|
|
|
|
# $Id$
|
|
|
|
|
2007-02-23 11:29:50 +05:30
|
|
|
BRANCH = 2.2
|
2007-02-24 05:24:56 +05:30
|
|
|
HELP_LINGUAS = C fr sk nl #nb
|
2007-02-23 11:29:50 +05:30
|
|
|
|
|
|
|
# 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/
|
2007-02-24 07:17:15 +05:30
|
|
|
docbookxsl = /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
|
2007-02-23 11:29:50 +05:30
|
|
|
|
2007-02-17 02:54:55 +05:30
|
|
|
html:
|
2007-02-23 11:29:50 +05:30
|
|
|
rm -rf gramps-manual # Clean up the output dir
|
|
|
|
for lang in $(HELP_LINGUAS) ; do \
|
2007-02-23 11:40:16 +05:30
|
|
|
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 ../$$lang/figures/*.png \
|
|
|
|
gramps-manual/$(BRANCH)/$$lang/figures/ ; \
|
|
|
|
echo " Done with html for $$lang" ; \
|
|
|
|
echo " " ; \
|
2007-02-23 11:29:50 +05:30
|
|
|
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 \
|
2007-02-23 11:40:16 +05:30
|
|
|
cp $(admonimgdir)/$$img gramps-manual/images/ ; \
|
2007-02-23 11:29:50 +05:30
|
|
|
done
|
|
|
|
|
|
|
|
cp gramps-help-screen.css gramps-manual/
|
2007-02-17 02:46:14 +05:30
|
|
|
|
2007-02-24 07:17:15 +05:30
|
|
|
pdf: fo
|
|
|
|
|
|
|
|
fo:
|
|
|
|
rm -rf gramps-pdf # Clean up the output dir
|
|
|
|
for lang in $(HELP_LINGUAS) ; do \
|
|
|
|
if test $$lang = C ; then \
|
|
|
|
papers="USletter A4"; \
|
|
|
|
else \
|
|
|
|
papers=A4 ; \
|
|
|
|
fi ; \
|
|
|
|
for paper in $$papers ; do \
|
|
|
|
xsltproc \
|
|
|
|
--output gramps-pdf/$$lang/gramps-$$paper.fo \
|
|
|
|
--stringparam paper.type $$paper \
|
|
|
|
--stringparam double.sided 1 \
|
|
|
|
--stringparam admon.graphics 1 \
|
|
|
|
--stringparam admon.graphics.path ./admonpdf \
|
|
|
|
--stringparam section.autolabel 1 \
|
|
|
|
--stringparam section.autolabel.max.depth 3 \
|
|
|
|
--stringparam \
|
|
|
|
section.label.includes.component.label 1 \
|
|
|
|
--stringparam body.start.indent 0pt \
|
|
|
|
--stringparam fop.extensions 1 \
|
|
|
|
$(docbookxsl) ../$$lang/gramps.xml ; \
|
|
|
|
done ; \
|
|
|
|
done
|