[lfs-fr] r5851 - trunk/lfs

myou72 at orange.fr myou72 at orange.fr
Sam 15 Mar 15:33:29 PDT 2014


Author: myou72
Date: 2014-03-15 23:33:29 +0100 (Sat, 15 Mar 2014)
New Revision: 5851

Added:
   trunk/lfs/gen-epub.sh
Modified:
   trunk/lfs/Makefile
Log:
correction generation epub

Modified: trunk/lfs/Makefile
===================================================================
--- trunk/lfs/Makefile	2014-03-15 22:32:41 UTC (rev 5850)
+++ trunk/lfs/Makefile	2014-03-15 22:33:29 UTC (rev 5851)
@@ -50,11 +50,9 @@
 		mkdir -p $(BASEDIR); \
 	fi;
 	$(Q)mkdir -p $(RENDERTMP)/lfs-epub/
-	$(Q)xsltproc --nonet --output $(RENDERTMP)/lfs-epub/lfs-epub.xml stylesheets/lfs-epub.xsl $(RENDERTMP)/lfs-full.xml
+	$(Q)xsltproc --nonet --output $(RENDERTMP)/lfs-epub/ stylesheets/lfs-xsl/docbook-xsl-1.78.1/epub/docbook.xsl $(RENDERTMP)/lfs-full.xml
 	@echo "Generating EPUB file..."
-	$(Q)echo "application/epub+zip" > $(RENDERTMP)/lfs-epub-mimetype
-	$(Q)zip -0Xq  $(BASEDIR)/$(EPUB_OUTPUT) $(RENDERTMP)/lfs-epub-mimetype
-	$(Q)zip -Xr9Dq $(BASEDIR)/$(EPUB_OUTPUT) $(RENDERTMP)/lfs-epub/*
+	$(Q)./gen-epub.sh $(RENDERTMP) $(BASEDIR) $(EPUB_OUTPUT)
 
 pdf: validate
 	@echo "Generating profiled XML for PDF..."

Added: trunk/lfs/gen-epub.sh
===================================================================
--- trunk/lfs/gen-epub.sh	                        (rev 0)
+++ trunk/lfs/gen-epub.sh	2014-03-15 22:33:29 UTC (rev 5851)
@@ -0,0 +1,17 @@
+#/bin/bash
+
+
+RENDERTMP=$1
+BASEDIR=$2
+EPUB_OUTPUT=$3
+
+echo "RENDERTMP=$RENDERTMP"
+echo "BASEDIR=$BASEDIR"
+echo "EPUB_OUTPUT=EPUB_OUTPUT"
+
+echo "application/epub+zip" > $RENDERTMP/mimetype
+cd $RENDERTMP/
+zip -0Xq $BASEDIR/$EPUB_OUTPUT ./mimetype
+cd $RENDERTMP/lfs-epub/
+zip -Xr9Dq $BASEDIR/$EPUB_OUTPUT ./*
+


Property changes on: trunk/lfs/gen-epub.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the lfs-traducfr mailing list