did not work in bash
This commit is contained in:
@@ -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:
|
||||||
|
@@ -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"
|
||||||
|
@@ -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."
|
||||||
|
@@ -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."
|
||||||
|
Reference in New Issue
Block a user