# HG changeset patch # User meillo@marmaro.de # Date 1208634772 -7200 # Node ID 84c08287caa1751eb2e0fba510672d6d559d6980 # Parent 326bcd4e1708c6dacc8bfa26b2466d88a89891d7 fixed bug when called without arguments; minor stuff diff -r 326bcd4e1708 -r 84c08287caa1 TODO --- a/TODO Sat Apr 19 21:20:37 2008 +0200 +++ b/TODO Sat Apr 19 21:52:52 2008 +0200 @@ -3,3 +3,4 @@ - security checks - navigation in pic pages (really?) - verify that input files are images +- verify picture and thumbnail sizes are numbers diff -r 326bcd4e1708 -r 84c08287caa1 genwebgallery --- a/genwebgallery Sat Apr 19 21:20:37 2008 +0200 +++ b/genwebgallery Sat Apr 19 21:52:52 2008 +0200 @@ -16,7 +16,7 @@ index="index.html" sizePic=800 sizeThumb=150 -galleryTitle="photo gallery" +galleryTitle="" copyright="" @@ -101,7 +101,7 @@ usage() { - echo "usage: $PROGRAM [OPTIONS] FILES" + echo "usage: $PROGRAM [OPTIONS] PICTURES" exit 1 } @@ -139,7 +139,7 @@ # option processing -while [ "$#" -ge 1 -a `echo "$1" | awk '{print substr($0,1,1)}'` = '-' ] ; do +while [ "$#" -ge 1 ] && [ `echo "$1" | awk '{print substr($0,1,1)}'` = '-' ] ; do case $1 in '--version') echo "$PROGRAM version $VERSION" diff -r 326bcd4e1708 -r 84c08287caa1 genwebgallery.1 --- a/genwebgallery.1 Sat Apr 19 21:20:37 2008 +0200 +++ b/genwebgallery.1 Sat Apr 19 21:52:52 2008 +0200 @@ -8,7 +8,7 @@ .SH DESCRIPTION .B genwebgallery -Generates a web gallery of mentioned pictures. Only very minimalistic static HTML pages are generated. Copies of the pictures get resized to the defined sizes. +Generates a web gallery of mentioned pictures. Only very minimalistic static HTML pages are generated. Copies of the pictures are resized to the defined sizes. .PP All generated content goes in a subdirectory which defaults to 'webgallery'. Or any other directory specified by \-\-output. .PP @@ -40,7 +40,7 @@ Specify copyright notice .TP .B \-ps, \-\-pic\-size -Specify size of picture +Specify size of pictures .TP .B \-ts, \-\-thumb\-size Specify size of thumbnails