home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / template_generator.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2003-11-18  |  645 b   |  26 lines

  1. #!/bin/bash
  2. # $Id: template_generator.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $
  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. if [ $# == 0 ]
  14. then
  15.   echo "Usage: template_generator.sh 'filename' 'description'"
  16.   echo ""
  17.   exit 65
  18. fi
  19.  
  20.  
  21.  
  22. ./generator.sh 'TEMPLATE' "$1" "$2"
  23. echo " "
  24. echo "New TRANSFORM FUNCTION $1.inc.php added."
  25.