View Single Post
Old 07-23-2010, 12:27 PM   #8
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by pietvo View Post
You can't just rezip the thing. It is dangerous. The first element (mimetype) has to be treated specially: It must be the first file and it should not be compressed in any way. Depending on your Zip software this may happen by accident but don't count on it.

Something like:

zip -0Xq book.epub mimetype
zip -Xr9D book.epub *
Be careful with that. If you take the above commands literally, you are creating the epub in the same directory as "mimetype" (which directory is part of the epub itself), and you are zipping the epub into itself in the second line. try instead: (Unix syntax shown)

zip -0Xq ../book.epub mimetype
zip -Xr9D ../book.epub *

which will create the epub in the directory above that of the unzipped epub.

I know that's what you meant, I'm just commenting for the newbies here who might not catch it.
st_albert is offline   Reply With Quote