Merge remote branch 'origin/master' into mlewandow-branch01
[phpmyadmin/mlewandow.git] / libraries / transformations / template_generator_mimetype.sh
blobb93ee5d4eaa51259121a996cf8d4c1b436150ca5
1 #!/bin/bash
3 # Shell script that adds a new mimetype without transform function.
5 # The filename should contain either 'mimetype_subtype' or 'mimetype'.
6 # The suffix '.inc.php' is appended automatically!
8 # Example: template_generator_mimetype.sh 'filename'
9 #
10 if [ $# == 0 ]
11 then
12 echo "Usage: template_generator_mimetype.sh 'filename'"
13 echo ""
14 exit 65
17 ./generator.sh 'TEMPLATE_MIMETYPE' "$1"
18 echo " "
19 echo "New MIMETYPE $1.inc.php added."