changeset 43:b526a65d5066

improved printout messages
author meillo@marmaro.de
date Mon, 23 Jun 2008 16:54:09 +0200
parents 8f69055cf7ed
children 039f9a8b823b
files genwebgallery
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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