From: Platonides Date: Tue, 8 Feb 2011 22:33:57 +0000 (+0000) Subject: Follow up r81562 X-Git-Tag: 1.31.0-rc.0~32104 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=d7d93a777841e066f4bc8654f2fa33df7efcf3ae;p=lhc%2Fweb%2Fwiklou.git Follow up r81562 --- diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php index 790a27c003..88b2b90fe6 100644 --- a/maintenance/mwdocgen.php +++ b/maintenance/mwdocgen.php @@ -148,6 +148,7 @@ function getSvnRevision( $dir ) { * @param $currentVersion String: Version number of the software * @param $svnstat String: path to the svnstat file * @param $input String: Path to analyze. + * @param $exclude String: Additionals path regex to exclude * @param $exclude_patterns String: Additionals path regex to exclude * (LocalSettings.php, AdminSettings.php, .svn and .git directories are always excluded) */ @@ -155,11 +156,6 @@ function generateConfigFile( $doxygenTemplate, $outputDirectory, $stripFromPath, $template = file_get_contents( $doxygenTemplate ); - // Generate path exclusions - global $mwExcludePaths, $mwPath; - $excludedPaths = $mwPath . join( " $mwPath", $mwExcludePaths ); - print "EXCLUDE: $excludedPaths\n\n"; - // Replace template placeholders by correct values. $replacements = array( '{{OUTPUT_DIRECTORY}}' => $outputDirectory, @@ -167,7 +163,7 @@ function generateConfigFile( $doxygenTemplate, $outputDirectory, $stripFromPath, '{{CURRENT_VERSION}}' => $currentVersion, '{{SVNSTAT}}' => $svnstat, '{{INPUT}}' => $input, - '{{EXCLUDE}}' => $excludedPaths, + '{{EXCLUDE}}' => $exclude, '{{EXCLUDE_PATTERNS}}' => $exclude_patterns, '{{HAVE_DOT}}' => `which dot` ? 'YES' : 'NO', ); @@ -247,7 +243,11 @@ if ( $versionNumber === false ) { # Not using subversion ? $version = "trunk (r$versionNumber)"; } -$generatedConf = generateConfigFile( $doxygenTemplate, $doxyOutput, $mwPath, $version, $svnstat, $input, $exclude_patterns ); +// Generate path exclusions +$excludedPaths = $mwPath . join( " $mwPath", $mwExcludePaths ); +print "EXCLUDE: $excludedPaths\n\n"; + +$generatedConf = generateConfigFile( $doxygenTemplate, $doxyOutput, $mwPath, $version, $svnstat, $input, $excludedPaths, $exclude_patterns ); $command = $doxygenBin . ' ' . $generatedConf; echo <<