2005-05-22 23:24:09 +00:00
|
|
|
#!/usr/local/bin/php
|
2005-07-04 01:07:14 +00:00
|
|
|
<?php
|
2005-08-21 06:49:02 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2005-05-22 23:24:09 +00:00
|
|
|
|
|
|
|
/**
|
2005-10-18 22:27:39 +00:00
|
|
|
* Bake startup script
|
2006-01-13 23:53:23 +00:00
|
|
|
*
|
2005-10-18 22:27:39 +00:00
|
|
|
* Invokes the Bake class with given parameters.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
2006-01-13 23:53:23 +00:00
|
|
|
* Copyright (c) 2005, Cake Software Foundation, Inc.
|
2005-12-23 21:57:26 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2006-01-13 23:53:23 +00:00
|
|
|
* @filesource
|
2005-12-23 21:57:26 +00:00
|
|
|
* @copyright Copyright (c) 2005, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
2005-08-21 06:49:02 +00:00
|
|
|
* @package cake
|
2005-10-09 01:56:21 +00:00
|
|
|
* @subpackage cake.cake.scripts
|
2005-08-21 06:49:02 +00:00
|
|
|
* @since CakePHP v 0.2.9
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
*/
|
2005-05-22 23:24:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* START-UP
|
|
|
|
*/
|
|
|
|
define ('DS', DIRECTORY_SEPARATOR);
|
2005-12-24 07:56:48 +00:00
|
|
|
define ('ROOT', dirname(dirname(dirname(__FILE__))).DS);
|
|
|
|
define ('APP_DIR', 'app');
|
2005-05-22 23:24:09 +00:00
|
|
|
|
2005-12-24 07:56:48 +00:00
|
|
|
require (ROOT.'cake'.DS.'basics.php');
|
2006-01-13 23:53:23 +00:00
|
|
|
require (ROOT.'cake'.DS.'config'.DS.'paths.php');
|
2005-05-22 23:24:09 +00:00
|
|
|
uses ('bake');
|
|
|
|
|
|
|
|
$waste = array_shift($argv);
|
|
|
|
$product = array_shift($argv);
|
|
|
|
|
|
|
|
$bake = new Bake ($product, $argv);
|
|
|
|
|
2005-05-15 21:41:38 +00:00
|
|
|
?>
|