* @author Gregory Beaver * @copyright 2000-2007 Joshua Eichorn, Gregory Beaver * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @version CVS: $Id: phpdoc.inc 243933 2007-10-10 01:18:25Z ashnazg $ * @link http://www.phpdoc.org * @link http://pear.php.net/PhpDocumentor * @since 0.1 * @filesource * @todo CS cleanup - change package to PhpDocumentor */ // set up include path so we can find all files, no matter what $a = explode('/', str_replace('\\', '/', dirname(realpath(__FILE__)))); array_pop($a); $GLOBALS['_phpDocumentor_install_dir'] = join('/', $a); // add my directory to the include path, and make it first, should fix any errors if (substr(PHP_OS, 0, 3) == 'WIN') ini_set('include_path', $GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); else ini_set('include_path', $GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); /** * All command-line handling from previous version has moved to here * * Many settings also moved to phpDocumentor.ini */ require_once "phpDocumentor/Setup.inc.php"; $phpdoc = new phpDocumentor_setup; $phpdoc->readCommandLineSettings(); $phpdoc->setupConverters(); $phpdoc->createDocs(); ?>