did not work in bash

This commit is contained in:
Marc Delisle
2003-03-08 12:49:41 +00:00
parent fb04dbe74e
commit a7a77d3e9d
4 changed files with 9 additions and 5 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-03-08 Marc Delisle <lem9@users.sourceforge.net>
* libraries/transformations/*.sh: did not work in bash
2003-03-07 Marc Delisle <lem9@users.sourceforge.net>
* transformation_wrapper.php3, lang/*,
libraries/transformations/image_jpeg__inline.inc.php3:

View File

@@ -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 ""
echo ""

View File

@@ -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."

View File

@@ -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."