[debian-edu-commits] debian-edu/ 03/04: Adjust Makefile.common to use Xetex for (ja) pdf building and plain db2tex for all other languages.
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Wed Jun 15 16:43:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch schweer/bar
in repository debian-edu-doc.
commit 7f60be2ddbd5a3e1a849c2ca8a1d1789ca5ff981
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Wed Jun 15 18:40:14 2016 +0200
Adjust Makefile.common to use Xetex for (ja) pdf building and plain db2tex for all other languages.
---
documentation/common/Makefile.common | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/documentation/common/Makefile.common b/documentation/common/Makefile.common
index 09e9b9c..592f512 100644
--- a/documentation/common/Makefile.common
+++ b/documentation/common/Makefile.common
@@ -8,6 +8,7 @@ LANGUAGES = `find . -name "$(name).*.po" | sed -e "s/.\/$(name).//" -e "s/.po//"
DBTOEPUB = dbtoepub
XP = xsltproc --nonet --novalid --xinclude ../common/html.xsl
DBLATEX = dblatex -T db2latex -tpdf
+DBXETEX = dblatex -b xetex -p ../common/dblatex.xsl
# that's ugly, smarter approach appreciated
directory = `echo $(name) | sed 's/-manual//'`
@@ -86,8 +87,13 @@ pdf:
$(DBLATEX) $(name).xml --param=lingua=en
else
pdf:
- po4a --translate-only $(name).$(LINGUA).xml po4a.cfg
- $(DBLATEX) $(name).$(LINGUA).xml --param=lingua=$(LINGUA)
+ if [ "$(LINGUA)" = "ja" ] ; then \
+ po4a --translate-only $(name).$(LINGUA).xml po4a.cfg ; \
+ $(DBXETEX) $(name).$(LINGUA).xml --param=lingua=$(LINGUA) ; \
+ else \
+ po4a --translate-only $(name).$(LINGUA).xml po4a.cfg ; \
+ $(DBLATEX) $(name).$(LINGUA).xml --param=lingua=$(LINGUA) ; \
+ fi
endif
ifndef LINGUA
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-doc.git
More information about the debian-edu-commits
mailing list