2007-03-09 23:15:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Bake is a shell script for running CakePHP bake script
|
2007-03-27 05:10:42 +00:00
|
|
|
# PHP versions 4 and 5
|
2007-03-09 23:15:03 +00:00
|
|
|
#
|
2007-03-27 05:10:42 +00:00
|
|
|
# CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
# Copyright 2005-2007, Cake Software Foundation, Inc.
|
|
|
|
# 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
# Las Vegas, Nevada 89104
|
2007-03-09 23:15:03 +00:00
|
|
|
#
|
2007-03-27 05:10:42 +00:00
|
|
|
# Licensed under The MIT License
|
|
|
|
# Redistributions of files must retain the above copyright notice.
|
2007-03-09 23:15:03 +00:00
|
|
|
#
|
2007-03-27 05:10:42 +00:00
|
|
|
# @filesource
|
|
|
|
# @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
|
|
|
# @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
|
|
|
# @package cake
|
2007-05-14 01:14:41 +00:00
|
|
|
# @subpackage cake.cake.console
|
|
|
|
# @since CakePHP(tm) v 1.2.0.5012
|
2007-03-27 05:10:42 +00:00
|
|
|
# @version $Revision$
|
|
|
|
# @modifiedby $LastChangedBy$
|
|
|
|
# @lastmodified $Date$
|
|
|
|
# @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
2007-03-09 23:15:03 +00:00
|
|
|
#
|
|
|
|
################################################################################
|
2007-05-05 06:00:38 +00:00
|
|
|
clear
|
2007-03-09 23:15:03 +00:00
|
|
|
|
2007-05-05 06:00:38 +00:00
|
|
|
LIB=${0/%cake/}
|
2007-09-11 19:03:34 +00:00
|
|
|
APP=`pwd`
|
2007-03-09 23:15:03 +00:00
|
|
|
|
2007-10-06 01:00:55 +00:00
|
|
|
exec php -q ${LIB}cake.php -working "${APP}" "$@"
|
2007-03-09 23:15:03 +00:00
|
|
|
|
2007-05-05 06:00:38 +00:00
|
|
|
echo " ";
|
2007-05-05 06:21:34 +00:00
|
|
|
|
2007-03-27 05:10:42 +00:00
|
|
|
exit;
|