Fixup transformations generator.

This commit is contained in:
Michal Čihař
2010-05-25 14:38:30 +02:00
parent 210f3f5a0e
commit 94b9b5e705

View File

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