5 * phpDocumentor :: automatic documentation generator
\r
7 * PHP versions 4 and 5
\r
9 * Copyright (c) 2000-2007 Joshua Eichorn, Gregory Beaver
\r
13 * This library is free software; you can redistribute it
\r
14 * and/or modify it under the terms of the GNU Lesser General
\r
15 * Public License as published by the Free Software Foundation;
\r
16 * either version 2.1 of the License, or (at your option) any
\r
19 * This library is distributed in the hope that it will be useful,
\r
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
22 * Lesser General Public License for more details.
\r
24 * You should have received a copy of the GNU Lesser General Public
\r
25 * License along with this library; if not, write to the Free Software
\r
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
28 * @category ToolsAndUtilities
\r
29 * @package phpDocumentor
\r
30 * @author Joshua Eichorn <jeichorn@phpdoc.org>
\r
31 * @author Gregory Beaver <cellog@php.net>
\r
32 * @copyright 2000-2007 Joshua Eichorn, Gregory Beaver
\r
33 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
\r
34 * @version CVS: $Id: phpdoc.inc,v 1.4 2007/10/10 01:18:25 ashnazg Exp $
\r
35 * @link http://www.phpdoc.org
\r
36 * @link http://pear.php.net/PhpDocumentor
\r
39 * @todo CS cleanup - change package to PhpDocumentor
\r
43 // set up include path so we can find all files, no matter what
\r
44 $a = explode('/', str_replace('\\', '/', dirname(realpath(__FILE__))));
\r
46 $GLOBALS['_phpDocumentor_install_dir'] = join('/', $a);
\r
47 // add my directory to the include path, and make it first, should fix any errors
\r
48 if (substr(PHP_OS, 0, 3) == 'WIN')
\r
49 ini_set('include_path',
\r
50 $GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path'));
\r
52 ini_set('include_path',
\r
53 $GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path'));
\r
56 * All command-line handling from previous version has moved to here
\r
58 * Many settings also moved to phpDocumentor.ini
\r
60 require_once "phpDocumentor/Setup.inc.php";
\r
62 $phpdoc = new phpDocumentor_setup;
\r
63 $phpdoc->readCommandLineSettings();
\r
64 $phpdoc->setupConverters();
\r
65 $phpdoc->createDocs();
\r