mirror of
https://github.com/flynx/photobook.git
synced 2025-10-28 09:50:09 +00:00
several fixes and some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e2fb80991f
commit
32e28dae00
@ -54,13 +54,6 @@ printhelp(){
|
||||
echo " in both the repo and in installed form, so .dtx is not used."
|
||||
}
|
||||
|
||||
# Usage: printerror MESSAGE...
|
||||
printerror(){
|
||||
echo Error: $@
|
||||
echo
|
||||
printusage
|
||||
}
|
||||
|
||||
# Usage: printmsg TEXT
|
||||
printmsg(){
|
||||
# print message...
|
||||
@ -88,21 +81,23 @@ while true ; do
|
||||
;;
|
||||
-p|--prefix)
|
||||
PREFIX=$2
|
||||
shift
|
||||
shift
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
-s|--strip)
|
||||
STRIP_DOC=1
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
-n|--no-msg)
|
||||
NO_MSG=1
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
|
||||
# handle unknown options...
|
||||
-*|--*)
|
||||
printerror "unknown option \"$1\""
|
||||
echo "Error: unknown option: \"$1\"" >&2
|
||||
exit
|
||||
;;
|
||||
|
||||
|
||||
@ -177,38 +177,45 @@ while true ; do
|
||||
-a|--annotate)
|
||||
ANOTATE_IMAGE_PATHS=1
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
-c)
|
||||
$CONFIG="$2"
|
||||
[ -e "$CONFIG" ] \
|
||||
&& source "$CONFIG"
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
|
||||
--templates)
|
||||
TEMPLATE_DIR=$2
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
--single-image-tpl)
|
||||
IMAGE_SPREAD[1]=$2
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
--double-image-tpl)
|
||||
IMAGE_SPREAD[2]=$2
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
--text-spread-tpl)
|
||||
IMAGE_SPREAD[0]=$2
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
--captions)
|
||||
CAPTION_DIR=$2
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
|
||||
# handle unknown options...
|
||||
-*|--*)
|
||||
echo "Error: unknown option \"$1\""
|
||||
echo "Error: unknown option \"$1\"" >&2
|
||||
exit
|
||||
;;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user