Skip to content

Instantly share code, notes, and snippets.

@skyylex
Created March 14, 2016 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyylex/f384c5d6996b794ff68a to your computer and use it in GitHub Desktop.
Save skyylex/f384c5d6996b794ff68a to your computer and use it in GitHub Desktop.
Bash script that generates .epub file from sources. (first argument = filename)
#!/bin/bash
rm -f "$1"
zip -X0 "$1" mimetype
zip -X9Dr "$1" META-INF OEBPS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment