~hexmode/+junk/main

« back to all changes in this revision

Viewing changes to install-files/apps/phpmyadmin2.10.1/libraries/transformations/template_generator.sh

  • Committer: Mark A. Hershberger
  • Date: 2008-01-05 19:38:56 UTC
  • Revision ID: hershberger@spawn-xp-20080105193856-6rnzgwa4nehue3qj
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# $Id: template_generator.sh 9537 2006-10-12 16:27:13Z nijel $
 
3
#
 
4
# Shell script that adds a new mimetype with transform function.
 
5
#
 
6
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
 
7
# The suffix '.inc.php' is appended automatically!
 
8
#
 
9
# The 'description' parameter will add a new entry in the language file. Watch out for
 
10
# special escaping.
 
11
#
 
12
# Example:  template_generator.sh 'filename' 'description'
 
13
 
14
if [ $# == 0 ]
 
15
then
 
16
  echo "Usage: template_generator.sh 'filename' 'description'"
 
17
  echo ""
 
18
  exit 65
 
19
fi
 
20
 
 
21
 
 
22
 
 
23
./generator.sh 'TEMPLATE' "$1" "$2"
 
24
echo " "
 
25
echo "New TRANSFORM FUNCTION $1.inc.php added."