Fixup transformations generator.
This commit is contained in:
@@ -18,16 +18,7 @@ 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.php
|
||||
|
||||
if [ "$3" ]
|
||||
then
|
||||
echo ""
|
||||
echo "To do later:"
|
||||
echo "cd ../../lang"
|
||||
echo "./add_message.sh '\$strTransformation_${functionlower}' '$3'"
|
||||
echo ""
|
||||
fi
|
||||
sed "s/\[ENTER_FILENAME_HERE\]/$functionupper/; s/\[enter_filename_here\]/$functionlower/; s/Description of the transformation./$3/;" < $1 > $2.inc.php
|
||||
|
||||
echo "Created $2.inc.php"
|
||||
echo ""
|
||||
|
Reference in New Issue
Block a user