View Single Post
Old 12-10-2009, 05:41 PM   #6
paulgodard
Member
paulgodard began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Dec 2009
Device: iphone
Quote:
Originally Posted by Jellby View Post
Hand-coded XHTML, OPF and NCX, zipped with:

Code:
#!/bin/bash
FILE="The Prince and the Pauper.epub"
rm -f "$FILE"
zip -X0 "$FILE" mimetype
zip -X9Dr "$FILE" META-INF OEBPS
Hi Jellby

Does this code works on Mac OS-X? I have read that the sequence in which the files are zipped is important.

I am also looking at automating the coding of the HTML, OPF and NCX files with php and mysql because my book has a very repetitive structure.

Paul
paulgodard is offline   Reply With Quote