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 diff
1.1 --- a/Makefile Sat Nov 24 23:30:20 2007 +0100 1.2 +++ b/Makefile Sat Apr 19 11:38:29 2008 +0200 1.3 @@ -33,7 +33,7 @@ 1.4 mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\ 1.5 cd ${NV}/ ;\ 1.6 cp -r ../../debian/ . ;\ 1.7 - debuild ;\ 1.8 + debuild -as ;\ 1.9 ) 1.10 1.11 changelog:
2.1 --- a/genwebgallery Sat Nov 24 23:30:20 2007 +0100 2.2 +++ b/genwebgallery Sat Apr 19 11:38:29 2008 +0200 2.3 @@ -21,7 +21,7 @@ 2.4 2.5 2.6 2.7 -function checkCreateDir() { 2.8 +checkCreateDir() { 2.9 remove="no" 2.10 if [ -e "$targetDir" ] ; then 2.11 if [ "$overwrite" = "no" ] ; then 2.12 @@ -50,7 +50,7 @@ 2.13 2.14 2.15 2.16 -function insertHeader() { 2.17 +insertHeader() { 2.18 echo " 2.19 <?xml version=\"1.0\" encoding=\"utf-8\"?> 2.20 <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" 2.21 @@ -68,7 +68,7 @@ 2.22 2.23 2.24 2.25 -function insertFooter() { 2.26 +insertFooter() { 2.27 echo " 2.28 2.29 </body> 2.30 @@ -78,7 +78,7 @@ 2.31 2.32 2.33 2.34 -function log() { 2.35 +log() { 2.36 if [ $verbose = "yes" ] ; then 2.37 echo "$1"; 2.38 fi 2.39 @@ -86,7 +86,7 @@ 2.40 2.41 2.42 2.43 -function checkConvert() { 2.44 +checkConvert() { 2.45 log "checking convert installation" 2.46 (convert -version) 2> /dev/null > /dev/null 2.47 if [ $? -ne 0 ] ; then 2.48 @@ -100,14 +100,14 @@ 2.49 2.50 2.51 2.52 -function usage() { 2.53 +usage() { 2.54 echo "usage: `basename $0` [OPTIONS] FILES" 2.55 exit 1 2.56 } 2.57 2.58 2.59 2.60 -function help() { 2.61 +help() { 2.62 echo "`basename $0` 2.63 2.64 generates a web gallery consisting of html pages 2.65 @@ -139,7 +139,7 @@ 2.66 2.67 # option processing 2.68 2.69 -while [ "$#" -ge 1 -a "${1:0:1}" = '-' ] ; do 2.70 +while [ "$#" -ge 1 -a `echo "$1" | awk '{print substr($0,1,1)}'` = '-' ] ; do 2.71 case $1 in 2.72 '--version') 2.73 echo "genwebgallery version $VERSION"