genwebgallery

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 diff
     1.1 --- a/genwebgallery	Mon Jun 23 15:50:50 2008 +0200
     1.2 +++ b/genwebgallery	Mon Jun 23 16:54:09 2008 +0200
     1.3 @@ -92,17 +92,19 @@
     1.4  
     1.5  
     1.6  checkResizer() {
     1.7 -	log "checking resize program installation"
     1.8  	if [ `command -v mogrify` ] ; then
     1.9 -		log "Found 'mogrify':"
    1.10 +		log "using 'mogrify' to resize images"
    1.11  		log "`mogrify -version`"
    1.12  		resizer="mogrify"
    1.13  	elif [ `command -v resize-gd` ] ; then
    1.14 -		log "Found 'resize-gd':"
    1.15 +		log "using 'resize-gd' to resize images"
    1.16  		log "`resize-gd --version`"
    1.17  		resizer="resize-gd"
    1.18  	else
    1.19 -		echo "Found neither 'mogrify' (package imagemagick) nor 'resize-gd'."
    1.20 +		echo "No supported image resize program found."
    1.21 +		echo "Supported are:"
    1.22 +		echo "- 'mogrify' (from package 'imagemagick')"
    1.23 +		echo "- 'resize-gd'"
    1.24  		echo "ABORT"
    1.25  		exit 2
    1.26  	fi
    1.27 @@ -117,7 +119,8 @@
    1.28  		resize-gd "$1" "$2"
    1.29  	else
    1.30  		echo "No resize program available."
    1.31 -		echo "It's probably a program bug if you see this message."
    1.32 +		echo
    1.33 +		echo "It's most likely a program bug if you see this message."
    1.34  		echo "Please contact the author or maintainer (see man page)."
    1.35  		echo "ABORT"
    1.36  		exit 2