# HG changeset patch # User meillo@marmaro.de # Date 1210588634 -7200 # Node ID 7f3cea97b789a31bf9f9d4aeee66bf7cf2c19620 # Parent cb1f0dda49e7ab3d0f3e112f458083a2254c0b71 "copyright notice" is known as "footer text" now diff -r cb1f0dda49e7 -r 7f3cea97b789 genwebgallery --- a/genwebgallery Mon May 12 11:54:04 2008 +0200 +++ b/genwebgallery Mon May 12 12:37:14 2008 +0200 @@ -17,7 +17,7 @@ sizePic=800 sizeThumb=150 galleryTitle="" -copyright="" +footer="" @@ -60,7 +60,7 @@ $titleName - + @@ -121,7 +121,7 @@ -o DIR folder where generated files go to ($targetDir) -i FILE the name of the index file ($index) -t TEXT title of the gallery ($galleryTitle) - -c TEXT a copyright notice ($copyright) + -f TEXT footer text ($footer) -ps PIXELS size of the pictures ($sizePic) -ts PIXELS size of the thumbnails ($sizeThumb) --overwrite overwrite output directory ($overwrite) @@ -129,7 +129,7 @@ for more information see man page: $PROGRAM(1) author: meillo@marmaro.de -homepage: http://prog.marmaro.de +homepage: http://prog.marmaro.de/genwebgallery " exit 0 } @@ -167,8 +167,8 @@ shift shift ;; - '-c' | '--copyright') - copyright=$2 + '-f' | '--footer') + footer=$2 shift shift ;; @@ -206,7 +206,7 @@ log "output dir: $targetDir" log "index file: $index" log "gallery title: $galleryTitle" -log "copyright notice: $copyright" +log "footer text: $footer" log "picture size: ${sizePic}px" log "thumbnail size: ${sizeThumb}px" log "overwrite output dir: $overwrite" @@ -236,8 +236,8 @@ echo "

$galleryTitle

" >> "$targetFile" fi echo "

\"$file\"

" >> "$targetFile" - if [ "$copyright" != "" ] ; then - echo "

$copyright

" >> "$targetFile" + if [ "$footer" != "" ] ; then + echo "

$footer

" >> "$targetFile" fi echo `insertFooter` >> "$targetFile" @@ -249,7 +249,7 @@ echo " \"$file\"" >> "$targetDir/$index" done -if [ "$copyright" != "" ] ; then - echo "

$copyright

" >> "$targetDir/$index" +if [ "$footer" != "" ] ; then + echo "

$footer

" >> "$targetDir/$index" fi echo `insertFooter` >> "$targetDir/$index"