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