2.5.3-rc2
[phpmyadmin/crack.git] / libraries / transformations / template_generator.sh
blob67923bf3d24cdd6aa2aae8e1dd2117ad01acbc6d
1 #!/bin/bash
2 # $Id$
4 # Shell script that adds a new mimetype with transform function.
6 # The filename should contain either 'mimetype_subtype' or 'mimetype'.
7 # The suffix '.inc.php3' is appended automatically!
9 # The 'description' parameter will add a new entry in the language file. Watch out for
10 # special escaping.
12 # Example: template_generator.sh 'filename' 'description'
14 if [ $# == 0 ]
15 then
16 echo "Usage: template_generator.sh 'filename' 'description'"
17 echo ""
18 exit 65
23 ./generator.sh 'TEMPLATE' "$1" "$2"
24 echo " "
25 echo "New TRANSFORM FUNCTION $1.inc.php3 added."