# HG changeset patch # User meillo@marmaro.de # Date 1214232849 -7200 # Node ID b526a65d5066b7a446eafa1d2a3b4519f581d73c # Parent 8f69055cf7eda6ba2cb1e31403058f1ca32106d7 improved printout messages diff -r 8f69055cf7ed -r b526a65d5066 genwebgallery --- a/genwebgallery Mon Jun 23 15:50:50 2008 +0200 +++ b/genwebgallery Mon Jun 23 16:54:09 2008 +0200 @@ -92,17 +92,19 @@ checkResizer() { - log "checking resize program installation" if [ `command -v mogrify` ] ; then - log "Found 'mogrify':" + log "using 'mogrify' to resize images" log "`mogrify -version`" resizer="mogrify" elif [ `command -v resize-gd` ] ; then - log "Found 'resize-gd':" + log "using 'resize-gd' to resize images" log "`resize-gd --version`" resizer="resize-gd" else - echo "Found neither 'mogrify' (package imagemagick) nor 'resize-gd'." + echo "No supported image resize program found." + echo "Supported are:" + echo "- 'mogrify' (from package 'imagemagick')" + echo "- 'resize-gd'" echo "ABORT" exit 2 fi @@ -117,7 +119,8 @@ resize-gd "$1" "$2" else echo "No resize program available." - echo "It's probably a program bug if you see this message." + echo + echo "It's most likely a program bug if you see this message." echo "Please contact the author or maintainer (see man page)." echo "ABORT" exit 2