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$ $Id$
$Source$ $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> 2003-03-07 Marc Delisle <lem9@users.sourceforge.net>
* transformation_wrapper.php3, lang/*, * transformation_wrapper.php3, lang/*,
libraries/transformations/image_jpeg__inline.inc.php3: libraries/transformations/image_jpeg__inline.inc.php3:

View File

@@ -15,13 +15,12 @@ then
echo "" echo ""
exit 65 exit 65
fi fi
functionupper="`echo $2 | tr [:lower:] [:upper:]`" functionupper="`echo $2 | tr [:lower:] [:upper:]`"
functionlower="`echo $2 | tr [:upper:] [:lower:]`" functionlower="`echo $2 | tr [:upper:] [:lower:]`"
cat $1 | sed "s/\[ENTER_FILENAME_HERE\]/$functionupper/" | sed "s/\[enter_filename_here\]/$functionlower/" >> $2.inc.php3 cat $1 | sed "s/\[ENTER_FILENAME_HERE\]/$functionupper/" | sed "s/\[enter_filename_here\]/$functionlower/" >> $2.inc.php3
if [ $3 ] if [ "$3" ]
then then
echo "" echo ""
echo "DEBUG/TODO: Call" echo "DEBUG/TODO: Call"
@@ -31,4 +30,4 @@ then
fi fi
echo "Created $2.inc.php3" echo "Created $2.inc.php3"
echo "" echo ""

View File

@@ -18,6 +18,8 @@ then
exit 65 exit 65
fi fi
./generator.sh 'TEMPLATE' '$1'
./generator.sh 'TEMPLATE' "$1" "$2"
echo " " echo " "
echo "New TRANSFORM FUNCTION $1.inc.php3 added." echo "New TRANSFORM FUNCTION $1.inc.php3 added."

View File

@@ -15,6 +15,6 @@ then
exit 65 exit 65
fi fi
./generator.sh 'TEMPLATE_MIMETYPE' '$1' ./generator.sh 'TEMPLATE_MIMETYPE' "$1"
echo " " echo " "
echo "New MIMETYPE $1.inc.php3 added." echo "New MIMETYPE $1.inc.php3 added."