Quote:
Originally Posted by dgatwood
IIRC, the folder name should also not be there. On OS X, I just do:
Code:
cd extracted_book_directory
zip -Xr9D ../filename.epub mimetype * -x .DS_Store
|
Well, I assume that is why pdurrant's post explicitly referenced a mimetype file in currentdir.
Quote:
Because the mimetype file is so small (in length), it is always more efficient to store it uncompressed, so in practice, no zip utility should ever compress it. You don't even need to worry about that; just make sure that it is the first file you pass to the zip utility.
|
Is it worth the risk?
In order to get away with using one command, instead of two, in a shell script, I don't see why you should be making that assumption.