genwebgallery

changeset 23:7f3cea97b789

"copyright notice" is known as "footer text" now
author meillo@marmaro.de
date Mon, 12 May 2008 12:37:14 +0200
parents cb1f0dda49e7
children 572f219cf0f4
files genwebgallery
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line diff
     1.1 --- a/genwebgallery	Mon May 12 11:54:04 2008 +0200
     1.2 +++ b/genwebgallery	Mon May 12 12:37:14 2008 +0200
     1.3 @@ -17,7 +17,7 @@
     1.4  sizePic=800
     1.5  sizeThumb=150
     1.6  galleryTitle=""
     1.7 -copyright=""
     1.8 +footer=""
     1.9  
    1.10  
    1.11  
    1.12 @@ -60,7 +60,7 @@
    1.13  <head>
    1.14  <title>$titleName</title>
    1.15  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
    1.16 -  <meta name=\"Generator\" content=\"genwebgallery - http://prog.marmaro.de\" />
    1.17 +  <meta name=\"Generator\" content=\"genwebgallery - http://prog.marmaro.de/genwebgallery\" />
    1.18  </head>
    1.19  <body>
    1.20  
    1.21 @@ -121,7 +121,7 @@
    1.22  	-o DIR      folder where generated files go to ($targetDir)
    1.23  	-i FILE     the name of the index file ($index)
    1.24  	-t TEXT     title of the gallery ($galleryTitle)
    1.25 -	-c TEXT     a copyright notice ($copyright)
    1.26 +	-f TEXT     footer text ($footer)
    1.27  	-ps PIXELS  size of the pictures ($sizePic)
    1.28  	-ts PIXELS  size of the thumbnails ($sizeThumb)
    1.29  	--overwrite overwrite output directory ($overwrite)
    1.30 @@ -129,7 +129,7 @@
    1.31  for more information see man page: $PROGRAM(1)
    1.32  
    1.33  author: meillo@marmaro.de
    1.34 -homepage: http://prog.marmaro.de
    1.35 +homepage: http://prog.marmaro.de/genwebgallery
    1.36  "
    1.37  	exit 0
    1.38  }
    1.39 @@ -167,8 +167,8 @@
    1.40  			shift
    1.41  			shift
    1.42  			;;
    1.43 -		'-c' | '--copyright')
    1.44 -			copyright=$2
    1.45 +		'-f' | '--footer')
    1.46 +			footer=$2
    1.47  			shift
    1.48  			shift
    1.49  			;;
    1.50 @@ -206,7 +206,7 @@
    1.51  log "output dir:           $targetDir"
    1.52  log "index file:           $index"
    1.53  log "gallery title:        $galleryTitle"
    1.54 -log "copyright notice:     $copyright"
    1.55 +log "footer text:          $footer"
    1.56  log "picture size:         ${sizePic}px"
    1.57  log "thumbnail size:       ${sizeThumb}px"
    1.58  log "overwrite output dir: $overwrite"
    1.59 @@ -236,8 +236,8 @@
    1.60  		echo "<h1>$galleryTitle</h1>" >> "$targetFile"
    1.61  	fi
    1.62  	echo "<p><a href=\"$index\"><img src=\"$file\" alt=\"$file\" /></a></p>" >> "$targetFile"
    1.63 -	if [ "$copyright" != "" ] ; then
    1.64 -		echo "<p>$copyright</p>" >> "$targetFile"
    1.65 +	if [ "$footer" != "" ] ; then
    1.66 +		echo "<p>$footer</p>" >> "$targetFile"
    1.67  	fi
    1.68  	echo `insertFooter` >> "$targetFile"
    1.69  
    1.70 @@ -249,7 +249,7 @@
    1.71  	echo "    <a href=\"$file.htm\"><img src=\"_$file\" alt=\"$file\" /></a>" >> "$targetDir/$index"
    1.72  done
    1.73  
    1.74 -if [ "$copyright" != "" ] ; then
    1.75 -	echo "<p>$copyright</p>" >> "$targetDir/$index"
    1.76 +if [ "$footer" != "" ] ; then
    1.77 +	echo "<p>$footer</p>" >> "$targetDir/$index"
    1.78  fi
    1.79  echo `insertFooter` >> "$targetDir/$index"