Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
#!/usr/bin/php -q
2
<?php
3
/**
4
 * Command-line code generation utility to automate programmer chores.
5
 *
6
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
7
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
8
 *
9
 * Licensed under The MIT License
10
 * For full copyright and license information, please see the LICENSE.txt
11
 * Redistributions of files must retain the above copyright notice.
12
 *
13
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14
 * @link          http://cakephp.org CakePHP(tm) Project
15
 * @package       app.Console
16
 * @since         CakePHP(tm) v 2.0
17
 */
18
 
19
$ds = DIRECTORY_SEPARATOR;
20
$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
21
 
22
if (function_exists('ini_set')) {
23
	$root = dirname(dirname(dirname(__FILE__)));
24
 
25
	// the following line differs from its sibling
26
	// /app/Console/cake.php
27
	ini_set('include_path', $root . PATH_SEPARATOR . __CAKE_PATH__ . PATH_SEPARATOR . ini_get('include_path'));
28
}
29
 
30
if (!include $dispatcher) {
31
	trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
32
}
33
unset($paths, $path, $dispatcher, $root, $ds);
34
 
35
return ShellDispatcher::run($argv);