changed git call from https to git readonly
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / phpdoc.inc
1 <?php\r
2 /**\r
3  * startup file\r
4  * \r
5  * phpDocumentor :: automatic documentation generator\r
6  * \r
7  * PHP versions 4 and 5\r
8  *\r
9  * Copyright (c) 2000-2007 Joshua Eichorn, Gregory Beaver\r
10  * \r
11  * LICENSE:\r
12  * \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
17  * later version.\r
18  * \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
23  * \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
27  *\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
37  * @since     0.1\r
38  * @filesource\r
39  * @todo      CS cleanup - change package to PhpDocumentor\r
40  */\r
41 \r
42 \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
45 array_pop($a);\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
51 else\r
52 ini_set('include_path', \r
53     $GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path'));\r
54 \r
55 /**\r
56  * All command-line handling from previous version has moved to here\r
57  *\r
58  * Many settings also moved to phpDocumentor.ini\r
59  */\r
60 require_once "phpDocumentor/Setup.inc.php";\r
61 \r
62 $phpdoc = new phpDocumentor_setup;\r
63 $phpdoc->readCommandLineSettings();\r
64 $phpdoc->setupConverters();\r
65 $phpdoc->createDocs();\r
66 ?>\r