Index: trunk/phase3/maintenance/mwdocgen.php |
— | — | @@ -61,6 +61,7 @@ |
62 | 62 | |
63 | 63 | /** Variable to get user input */ |
64 | 64 | $input = ''; |
| 65 | +$exclude = ''; |
65 | 66 | |
66 | 67 | # |
67 | 68 | # Functions |
— | — | @@ -129,7 +130,7 @@ |
130 | 131 | * @param $svnstat String: path to the svnstat file |
131 | 132 | * @param $input String: Path to analyze. |
132 | 133 | */ |
133 | | -function generateConfigFile( $doxygenTemplate, $outputDirectory, $stripFromPath, $currentVersion, $svnstat, $input ){ |
| 134 | +function generateConfigFile( $doxygenTemplate, $outputDirectory, $stripFromPath, $currentVersion, $svnstat, $input, $exclude ){ |
134 | 135 | global $tmpPath; |
135 | 136 | |
136 | 137 | $template = file_get_contents( $doxygenTemplate ); |
— | — | @@ -141,6 +142,7 @@ |
142 | 143 | '{{CURRENT_VERSION}}' => $currentVersion, |
143 | 144 | '{{SVNSTAT}}' => $svnstat, |
144 | 145 | '{{INPUT}}' => $input, |
| 146 | + '{{EXCLUDE}}' => $exclude, |
145 | 147 | ); |
146 | 148 | $tmpCfg = str_replace( array_keys( $replacements ), array_values( $replacements ), $template ); |
147 | 149 | $tmpFileName = $tmpPath . 'mwdocgen'. rand() .'.tmp'; |
— | — | @@ -168,6 +170,7 @@ |
169 | 171 | $file = $argv[2]; |
170 | 172 | } |
171 | 173 | break; |
| 174 | + case '--no-extensions': $input = 6; break; |
172 | 175 | } |
173 | 176 | } |
174 | 177 | |
— | — | @@ -182,6 +185,7 @@ |
183 | 186 | 3 : only maintenance |
184 | 187 | 4 : only skins |
185 | 188 | 5 : only a given file |
| 189 | + 6 : all but the extensions directory |
186 | 190 | OPTIONS; |
187 | 191 | while ( !is_numeric($input) ) |
188 | 192 | { |
— | — | @@ -203,6 +207,9 @@ |
204 | 208 | $file = readaline( "Enter file name $mwPath" ); |
205 | 209 | } |
206 | 210 | $input = $mwPath.$file; |
| 211 | +case 6: |
| 212 | + $input = $mwPath; |
| 213 | + $exclude = 'extensions'; |
207 | 214 | } |
208 | 215 | |
209 | 216 | $versionNumber = getSvnRevision( $input ); |
— | — | @@ -213,7 +220,7 @@ |
214 | 221 | $version = "trunk (r$versionNumber)"; |
215 | 222 | } |
216 | 223 | |
217 | | -$generatedConf = generateConfigFile( $doxygenTemplate, $doxyOutput, $mwPath, $version, $svnstat, $input ); |
| 224 | +$generatedConf = generateConfigFile( $doxygenTemplate, $doxyOutput, $mwPath, $version, $svnstat, $input, $exclude ); |
218 | 225 | $command = $doxygenBin . ' ' . $generatedConf; |
219 | 226 | |
220 | 227 | echo <<<TEXT |
Index: trunk/phase3/maintenance/Doxyfile |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | RECURSIVE = YES |
137 | 137 | EXCLUDE = |
138 | 138 | EXCLUDE_SYMLINKS = YES |
139 | | -EXCLUDE_PATTERNS = LocalSettings.php AdminSettings.php |
| 139 | +EXCLUDE_PATTERNS = LocalSettings.php AdminSettings.php .svn {{EXCLUDE}} |
140 | 140 | EXAMPLE_PATH = |
141 | 141 | EXAMPLE_PATTERNS = * |
142 | 142 | EXAMPLE_RECURSIVE = NO |