[debian-edu-commits] debian-edu/ 01/01: Makefile.common: Enable EPUB generation for default language en.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Thu Nov 27 11:15:58 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 c82b8008d871a562f6bf6d0ea1929ebe83962f10
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Thu Nov 27 12:15:35 2014 +0100

    Makefile.common: Enable EPUB generation for default language en.
---
 debian/changelog                     | 1 +
 documentation/common/Makefile.common | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cdbd740..7fe7484 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ debian-edu-doc (1.6~20141117~8.0+edu0~alpha1) UNRELEASED; urgency=medium
   * Update manuals and images from the wiki.
   * (it) Fix typos in wheezy and jessie manual translations.
   * (en, de, fr) Update jessie network architecture images.
+  * Makefile.common: Enable EPUB generation for default language en.
 
   [ Wheezy Manual translation updates ]
   * German (Wolfgang Schweer)
diff --git a/documentation/common/Makefile.common b/documentation/common/Makefile.common
index 3b49c53..807d2c2 100644
--- a/documentation/common/Makefile.common
+++ b/documentation/common/Makefile.common
@@ -51,6 +51,10 @@ build-html:
 		sed -i "s/href=\"index.html/href=\"$(name).$$f.html/g" $(name).$$f.html ; \
 	done
 build-epub:
+	# build the English EPUB version
+	echo "Creating epub for en"
+	$(DBTOEPUB) $(name).xml
+	# build all other EPUB versions
 	-for LINGUA in $(LANGUAGES) ; do \
 		echo "Creating epub for $$LINGUA"; \
 		po4a --translate-only $(name).$$LINGUA.xml po4a.cfg ; \
@@ -123,6 +127,9 @@ install: build
 			  rm $$LANGPATH/images/*.pdf ; \
 			fi ; \
 		fi ; \
+		if [ -e $(name).epub ] ; then \
+			cp $(name).epub $$LANGPATH/$(name).epub ; \
+		fi ; \
 		if [ -e $(name).$$f.epub ] ; then \
 			cp $(name).$$f.epub $$LANGPATH/$(name).epub ; \
 		fi ; \

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