genwebgallery

changeset 16:84c08287caa1

fixed bug when called without arguments; minor stuff
author meillo@marmaro.de
date Sat, 19 Apr 2008 21:52:52 +0200
parents 326bcd4e1708
children 87296564acd3
files TODO genwebgallery genwebgallery.1
diffstat 3 files changed, 6 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/TODO	Sat Apr 19 21:20:37 2008 +0200
     1.2 +++ b/TODO	Sat Apr 19 21:52:52 2008 +0200
     1.3 @@ -3,3 +3,4 @@
     1.4  - security checks
     1.5  - navigation in pic pages (really?)
     1.6  - verify that input files are images
     1.7 +- verify picture and thumbnail sizes are numbers
     2.1 --- a/genwebgallery	Sat Apr 19 21:20:37 2008 +0200
     2.2 +++ b/genwebgallery	Sat Apr 19 21:52:52 2008 +0200
     2.3 @@ -16,7 +16,7 @@
     2.4  index="index.html"
     2.5  sizePic=800
     2.6  sizeThumb=150
     2.7 -galleryTitle="photo gallery"
     2.8 +galleryTitle=""
     2.9  copyright=""
    2.10  
    2.11  
    2.12 @@ -101,7 +101,7 @@
    2.13  
    2.14  
    2.15  usage() {
    2.16 -	echo "usage: $PROGRAM [OPTIONS] FILES"
    2.17 +	echo "usage: $PROGRAM [OPTIONS] PICTURES"
    2.18  	exit 1
    2.19  }
    2.20  
    2.21 @@ -139,7 +139,7 @@
    2.22  
    2.23  # option processing
    2.24  
    2.25 -while [  "$#" -ge 1  -a  `echo "$1" | awk '{print substr($0,1,1)}'` = '-'  ] ; do
    2.26 +while [ "$#" -ge 1 ] && [ `echo "$1" | awk '{print substr($0,1,1)}'` = '-'  ] ; do
    2.27  	case $1 in
    2.28  		'--version')
    2.29  			echo "$PROGRAM version $VERSION"
     3.1 --- a/genwebgallery.1	Sat Apr 19 21:20:37 2008 +0200
     3.2 +++ b/genwebgallery.1	Sat Apr 19 21:52:52 2008 +0200
     3.3 @@ -8,7 +8,7 @@
     3.4  
     3.5  .SH DESCRIPTION
     3.6  .B genwebgallery
     3.7 -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.
     3.8 +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.
     3.9  .PP
    3.10  All generated content goes in a subdirectory which defaults to 'webgallery'. Or any other directory specified by \-\-output.
    3.11  .PP
    3.12 @@ -40,7 +40,7 @@
    3.13  Specify copyright notice
    3.14  .TP
    3.15  .B \-ps, \-\-pic\-size
    3.16 -Specify size of picture
    3.17 +Specify size of pictures
    3.18  .TP
    3.19  .B \-ts, \-\-thumb\-size
    3.20  Specify size of thumbnails