Add OK and Cancel button for grid editing
[phpmyadmin/arisferyanto.git] / libraries / transformations / template_generator.sh
blob0b029e94823668fece4bcf8050bb304e66066fde
1 #!/bin/bash
3 # Shell script that adds a new mimetype with transform function.
5 # The filename should contain either 'mimetype_subtype' or 'mimetype'.
6 # The suffix '.inc.php' is appended automatically!
8 # The 'description' parameter will add a new entry in the language file. Watch out for
9 # special escaping.
11 # Example: template_generator.sh 'filename' 'description'
13 if [ $# == 0 ]
14 then
15 echo "Usage: template_generator.sh 'filename' 'description'"
16 echo ""
17 exit 65
22 ./generator.sh 'TEMPLATE' "$1" "$2"
23 echo " "
24 echo "New TRANSFORM FUNCTION $1.inc.php added."