Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/phpmyadmin/libraries/transformations/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # $Id$ # # 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. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0148 ]-- |