diff options
author | Sean Whitton <spw+git@sdf.org> | 2014-06-06 11:36:03 +0900 |
---|---|---|
committer | Sean Whitton <spw+git@sdf.org> | 2014-06-06 11:36:03 +0900 |
commit | 4bb0b408c0d94d2ec20cf9f40a261ab30dc0f6d3 (patch) | |
tree | 3b273f54bd248b336dc0e0f9e0467690f73b7c3a /bin/makemobi | |
parent | 9dfce04f2bda3e998568e8d24c060d1dfc659944 (diff) | |
download | dotfiles-4bb0b408c0d94d2ec20cf9f40a261ab30dc0f6d3.tar.gz |
scripts to replace use of Calibre GUI
Diffstat (limited to 'bin/makemobi')
-rwxr-xr-x | bin/makemobi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/makemobi b/bin/makemobi new file mode 100755 index 00000000..06203021 --- /dev/null +++ b/bin/makemobi @@ -0,0 +1,15 @@ +#!/bin/sh + +input="$1" +title="$2" +author="$3" +output="${input%.*}.mobi" + +ebook-convert $input $output \ + --output-profile kindle_pw \ + --smarten-punctuation \ + --enable-heuristics \ + --authors "$author" \ + --title "$title" \ + --mobi-keep-original-images \ + --mobi-file-type new |