Translated using Weblate (Portuguese)
[phpmyadmin.git] / scripts / transformations_generator_main_class.sh
blobc609d1793c18c1dbfd9bb080658b2ca80dbb851e
1 #!/bin/bash
3 # Shell script that creates only the main class for a new transformation
4 # plug-in, using a template
6 # $1: MIMEType
7 # $2: MIMESubtype
8 # $3: Transformation Name
10 # Do not run as CGI
11 if [ -n "$GATEWAY_INTERFACE" ] ; then
12 echo 'Can not invoke as CGI!'
13 exit 1
16 if [ $# != 3 ]
17 then
18 echo -e "Usage: ./generator_main_class.sh MIMEType MIMESubtype TransformationName\n"
19 exit 65
22 ./generator_plugin.sh "$1" "$2" "$3" "--generate_only_main_class"