From b30b717463776b620f0b75084249d7c65b4f38f4 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 3 Sep 2004 23:07:58 +0000 Subject: [PATCH] simple script to generate phpdocumentor documentation and troubleshoot its generation --- maintenance/mwdocgen.php | 124 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100755 maintenance/mwdocgen.php diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php new file mode 100755 index 0000000000..8d0c8e3846 --- /dev/null +++ b/maintenance/mwdocgen.php @@ -0,0 +1,124 @@ + + * @version first release + */ + +# +# Variables / Configuration +# + +/** Phpdoc script with full path */ +$pdExec = '/usr/bin/phpdoc'; +/** where Phpdoc should output documentation */ +$pdOutput = '/var/www/mwdoc/'; + +/** Some more Phpdoc settings */ +//$pdOthers = ' -dn \'MediaWiki\' '; +$pdOthers .= ' --title \'Mediawiki generated documentation\' -o \'HTML:frames:DOM/earthli\' '; + +/** Mediawiki location */ +$mwPath = '/var/www/mediawiki/'; + +/** Mediawiki subpaths */ +$mwPathI = $mwPath.'includes/'; +$mwPathM = $mwPath.'maintenance/'; +$mwPathS = $mwPath.'skins/'; +$mwBaseFiles = $mwPath.'*php '; + + +/** Variable to get user input */ +$input = ''; +/** shell command that will be run */ +$command = ''; + +# +# Functions +# + +function readaline( $prompt = '') { + print $prompt; + $fp = fopen( "php://stdin", "r" ); + $resp = trim( fgets( $fp, 1024 ) ); + fclose( $fp ); + return $resp; + } + +# +# Main ! +# + +print << -- 2.20.1