SHARE
TWEET

Untitled

a guest May 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // To unzip the epub, move the ePub to a folder, cd to it then simply:
  2.  
  3. unzip MyEbook.epub
  4.  
  5. // To zip up an epub:
  6. 1. zip -X MyNewEbook.epub mimetype
  7. 2. zip -rg MyNewEbook.epub META-INF -x \*.DS_Store
  8. 3. zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store
  9.  
  10. Some explanations necessary here. We start each line with two flags:
  11. -r    (recursive)
  12. This means move down through any directories/folders recursively, ensuring that everything in the folders specified gets included
  13. -g    (grow file)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top