diff --git a/ChangeLog b/ChangeLog index 4ba70e026..bfd950993 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-03-08 Marc Delisle + * libraries/transformations/*.sh: did not work in bash + 2003-03-07 Marc Delisle * transformation_wrapper.php3, lang/*, libraries/transformations/image_jpeg__inline.inc.php3: diff --git a/libraries/transformations/generator.sh b/libraries/transformations/generator.sh index 11e5fdcfd..17b74d0dc 100644 --- a/libraries/transformations/generator.sh +++ b/libraries/transformations/generator.sh @@ -15,13 +15,12 @@ then echo "" exit 65 fi - functionupper="`echo $2 | tr [:lower:] [:upper:]`" functionlower="`echo $2 | tr [:upper:] [:lower:]`" cat $1 | sed "s/\[ENTER_FILENAME_HERE\]/$functionupper/" | sed "s/\[enter_filename_here\]/$functionlower/" >> $2.inc.php3 -if [ $3 ] +if [ "$3" ] then echo "" echo "DEBUG/TODO: Call" @@ -31,4 +30,4 @@ then fi echo "Created $2.inc.php3" -echo "" \ No newline at end of file +echo "" diff --git a/libraries/transformations/template_generator.sh b/libraries/transformations/template_generator.sh index c6c92078e..67923bf3d 100644 --- a/libraries/transformations/template_generator.sh +++ b/libraries/transformations/template_generator.sh @@ -18,6 +18,8 @@ then exit 65 fi -./generator.sh 'TEMPLATE' '$1' + + +./generator.sh 'TEMPLATE' "$1" "$2" echo " " echo "New TRANSFORM FUNCTION $1.inc.php3 added." diff --git a/libraries/transformations/template_generator_mimetype.sh b/libraries/transformations/template_generator_mimetype.sh index 4961f802c..ee2379c02 100644 --- a/libraries/transformations/template_generator_mimetype.sh +++ b/libraries/transformations/template_generator_mimetype.sh @@ -15,6 +15,6 @@ then exit 65 fi -./generator.sh 'TEMPLATE_MIMETYPE' '$1' +./generator.sh 'TEMPLATE_MIMETYPE' "$1" echo " " echo "New MIMETYPE $1.inc.php3 added."