2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4 // +----------------------------------------------------------------------+
5 // | Akelos Framework - http://www.akelos.org |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez |
8 // | Released under the GNU Lesser General Public License, see LICENSE.txt|
9 // +----------------------------------------------------------------------+
12 * @package AkelosFramework
13 * @subpackage Generators
14 * @author Bermi Ferrer <bermi a.t akelos c.om>
15 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
16 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html>
19 error_reporting(defined('AK_ERROR_REPORTING_ON_SCRIPTS') ? AK_ERROR_REPORTING_ON_SCRIPTS
: 0);
20 require_once(AK_LIB_DIR
.DS
.'Ak.php');
21 require_once(AK_LIB_DIR
.DS
.'AkObject.php');
22 require_once(AK_LIB_DIR
.DS
.'AkInflector.php');
23 defined('AK_SKIP_DB_CONNECTION') && AK_SKIP_DB_CONNECTION ?
($dsn='') : Ak
::db(&$dsn);
25 $command = join(' ',$argv);
27 require_once(AK_LIB_DIR
.DS
.'utils'.DS
.'generators'.DS
.'AkelosGenerator.php');
29 $Generator = new AkelosGenerator();
30 $Generator->runCommand($command);