[debian-edu-commits] debian-edu/ 03/04: Adjust Makefile.common to use Xetex for (ja) pdf building and plain db2tex for all other languages.

Holger Levsen holger at layer-acht.org
Wed Jun 15 16:49:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository debian-edu-doc.

commit 2de027095160a9278569edcfda4b5b2f9e1b9e0d
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.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 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