View Single Post
Old 12-05-2015, 07:27 PM   #19
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by dgatwood View Post
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.

Last edited by eschwartz; 12-05-2015 at 07:54 PM. Reason: fixed quote
eschwartz is offline   Reply With Quote