Mercurial > genwebgallery
changeset 14:6273a788c4fd
removed bashism
author | meillo@marmaro.de |
---|---|
date | Sat, 19 Apr 2008 11:38:29 +0200 |
parents | eec4b1acfe10 |
children | 326bcd4e1708 |
files | Makefile genwebgallery |
diffstat | 2 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Nov 24 23:30:20 2007 +0100 +++ b/Makefile Sat Apr 19 11:38:29 2008 +0200 @@ -33,7 +33,7 @@ mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\ cd ${NV}/ ;\ cp -r ../../debian/ . ;\ - debuild ;\ + debuild -as ;\ ) changelog:
--- a/genwebgallery Sat Nov 24 23:30:20 2007 +0100 +++ b/genwebgallery Sat Apr 19 11:38:29 2008 +0200 @@ -21,7 +21,7 @@ -function checkCreateDir() { +checkCreateDir() { remove="no" if [ -e "$targetDir" ] ; then if [ "$overwrite" = "no" ] ; then @@ -50,7 +50,7 @@ -function insertHeader() { +insertHeader() { echo " <?xml version=\"1.0\" encoding=\"utf-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" @@ -68,7 +68,7 @@ -function insertFooter() { +insertFooter() { echo " </body> @@ -78,7 +78,7 @@ -function log() { +log() { if [ $verbose = "yes" ] ; then echo "$1"; fi @@ -86,7 +86,7 @@ -function checkConvert() { +checkConvert() { log "checking convert installation" (convert -version) 2> /dev/null > /dev/null if [ $? -ne 0 ] ; then @@ -100,14 +100,14 @@ -function usage() { +usage() { echo "usage: `basename $0` [OPTIONS] FILES" exit 1 } -function help() { +help() { echo "`basename $0` generates a web gallery consisting of html pages @@ -139,7 +139,7 @@ # option processing -while [ "$#" -ge 1 -a "${1:0:1}" = '-' ] ; do +while [ "$#" -ge 1 -a `echo "$1" | awk '{print substr($0,1,1)}'` = '-' ] ; do case $1 in '--version') echo "genwebgallery version $VERSION"