Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) C:\Intranet\C\xampp\phpMyAdmin\libraries\transformations\ drwxrwxrwx |
Viewing file: generator.sh (852 B) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/bin/bash # $Id: generator.sh 9537 2006-10-12 16:27:13Z nijel $ # # Shell script that adds a new function file using a template. Should not be called directly # but instead by template_Generator.sh and template_generator_mimetype.sh # # # $1: Template # $2: Filename # $3: (optional) Description if [ $# == 0 ] then echo "Please call template_generator.sh or template_generator_mimetype.sh instead" echo "" exit 65 fi functionupper="`echo $2 | tr [:lower:] [:upper:]`" functionlower="`echo $2 | tr [:upper:] [:lower:]`" cat $1 | sed "s/\[ENTER_FILENAME_HERE\]/$functionupper/" | sed "s/\[enter_filename_here\]/$functionlower/" >> $2.inc.php if [ "$3" ] then echo "" echo "To do later:" echo "cd ../../lang" echo "./add_message.sh '\$strTransformation_${functionlower}' '$3'" echo "" fi echo "Created $2.inc.php" echo "" |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |