Rev Author Line No. Line
250 kaklik 1 #!/bin/bash
2 # $Id: template_generator_mimetype.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $
3 #
4 # Shell script that adds a new mimetype without transform function.
5 #
6 # The filename should contain either 'mimetype_subtype' or 'mimetype'.
7 # The suffix '.inc.php' is appended automatically!
8 #
9 # Example: template_generator_mimetype.sh 'filename'
10 #
11 if [ $# == 0 ]
12 then
13 echo "Usage: template_generator_mimetype.sh 'filename'"
14 echo ""
15 exit 65
16 fi
17  
18 ./generator.sh 'TEMPLATE_MIMETYPE' "$1"
19 echo " "
20 echo "New MIMETYPE $1.inc.php added."