changeset 16:84c08287caa1

fixed bug when called without arguments; minor stuff
author meillo@marmaro.de
date Sat, 19 Apr 2008 21:52:52 +0200 (2008-04-19)
parents 326bcd4e1708
children 87296564acd3
files TODO genwebgallery genwebgallery.1
diffstat 3 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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"
--- 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