summaryrefslogtreecommitdiff
path: root/extras/mkpdf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mkpdf.sh')
-rwxr-xr-xextras/mkpdf.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/mkpdf.sh b/extras/mkpdf.sh
index cbfcd1b..a2ba2c7 100755
--- a/extras/mkpdf.sh
+++ b/extras/mkpdf.sh
@@ -3,4 +3,7 @@
#
# Requires imagemagick
-convert *.png book.pdf
+test $# -ne 1 && echo "Usage: $0 bookdir" && exit 1
+
+cd "$1" && convert * book.pdf
+echo "$1/book.pdf"