From 9239c8747aa79b95ae87b61b5758d089040d0616 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 3 Dec 2011 18:18:12 +0000 Subject: Have extras scripts take jpgs into account, and change their usage slightly --- extras/mkpdf.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extras/mkpdf.sh') 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" -- cgit v1.2.3