summaryrefslogtreecommitdiff
path: root/bin/makemobi
diff options
context:
space:
mode:
authorSean Whitton <spw+git@sdf.org>2014-06-06 11:36:03 +0900
committerSean Whitton <spw+git@sdf.org>2014-06-06 11:36:03 +0900
commit4bb0b408c0d94d2ec20cf9f40a261ab30dc0f6d3 (patch)
tree3b273f54bd248b336dc0e0f9e0467690f73b7c3a /bin/makemobi
parent9dfce04f2bda3e998568e8d24c060d1dfc659944 (diff)
downloaddotfiles-4bb0b408c0d94d2ec20cf9f40a261ab30dc0f6d3.tar.gz
scripts to replace use of Calibre GUI
Diffstat (limited to 'bin/makemobi')
-rwxr-xr-xbin/makemobi15
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