[debian-edu-commits] debian-edu/ 01/01: Makefile.common: If available use language specific images in EPUB manuals instead of default (en) ones.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Sat Nov 29 15:16:04 UTC 2014


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

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

commit 586948aa9645c9be875c3f600a9cbe21a0fa0c7e
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Sat Nov 29 16:15:32 2014 +0100

    Makefile.common: If available use language specific images in EPUB manuals instead of default (en) ones.
---
 debian/changelog                     | 2 ++
 documentation/common/Makefile.common | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b9644bc..7ce3c07 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ debian-edu-doc (1.6~20141117~8.0+edu0~alpha1) UNRELEASED; urgency=medium
   * Makefile.common: Store images in manual specific directories instead of
     a common one to avoid linking to wrong images for the jessie and wheezy
     HTML manuals. (Closes: #771345).
+  * Makefile.common: If available use language specific images in EPUB manuals
+    instead of default (en) ones.
 
   [ Jessie Manual translation updates ]
   * German (Wolfgang Schweer)
diff --git a/documentation/common/Makefile.common b/documentation/common/Makefile.common
index 369f1e2..09e9b9c 100644
--- a/documentation/common/Makefile.common
+++ b/documentation/common/Makefile.common
@@ -58,7 +58,15 @@ build-epub:
 	-for LINGUA in $(LANGUAGES) ; do \
 		echo "Creating epub for $$LINGUA"; \
 		po4a --translate-only $(name).$$LINGUA.xml po4a.cfg ; \
+		mkdir images-tmp ; \
+		cp images/*.* images-tmp/ ; \
+		if [ -e images/$$LINGUA ] ; then \
+		    cp -v images/$$LINGUA/*.* images-tmp/ ; \
+		fi ; \
+		sed -i "s#./images#./images-tmp#g" $(name).$$LINGUA.xml ; \
 		$(DBTOEPUB) $(name).$$LINGUA.xml ; \
+		sed -i "s#./images-tmp#./images/#g" $(name).$$LINGUA.xml ; \
+		rm -rf images-tmp/ ; \
 	done
 else
 build-html:

-- 
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