cake 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. ################################################################################
  3. #
  4. # Bake is a shell script for running CakePHP bake script
  5. # PHP versions 4 and 5
  6. #
  7. # CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
  8. # Copyright 2005-2007, Cake Software Foundation, Inc.
  9. # 1785 E. Sahara Avenue, Suite 490-204
  10. # Las Vegas, Nevada 89104
  11. #
  12. # Licensed under The MIT License
  13. # Redistributions of files must retain the above copyright notice.
  14. #
  15. # @filesource
  16. # @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
  17. # @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  18. # @package cake
  19. # @subpackage cake.cake.scripts
  20. # @since CakePHP(tm) v 1.2.0.4604
  21. # @version $Revision$
  22. # @modifiedby $LastChangedBy$
  23. # @lastmodified $Date$
  24. # @license http://www.opensource.org/licenses/mit-license.php The MIT License
  25. #
  26. ################################################################################
  27. clear
  28. LIB=${0/%cake/}
  29. APP=`pwd`/
  30. echo "Hello $USER,"
  31. exec php -q ${LIB}cake.php "$@" -working "${APP}"
  32. echo " ";
  33. exit;