View Single Post
Old 07-24-2010, 04:49 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Just to be picky, the second command zips everything, which includes "mimetype" again, so it could be compressed instead of just stored. To exclude mimetype:

zip -Xr9D ../book.epub * -x mimetype

My standard script is:

Code:
FILE="Book Title.epub"
rm -f "$FILE"
zip -X0 "$FILE" mimetype
zip -X9Dr "$FILE" META-INF OEBPS
I make sure I remove the .epub file first (otherwise old files are not removed from it), and my ePUBs have always the same structure (just the "mimetype" file, the "META-INF" directory, and everything else inside an "OEBPS" directory).
Jellby is offline   Reply With Quote