svn: /phpdoc/doc-base/trunk/ configure.php
| From: | Hannes Magnusson | Date: | Wed, 27 Apr 2011 17:38:14 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/ configure.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8025@lists.php.net to get a copy of this message | ||
bjori Wed, 27 Apr 2011 17:38:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310587
Log:
- Only aggregate the version files we need, during partial builds
(shaves off almost a second for the phd build)
- Do not exit with a failure status when validation fails on partial builds
# Note: Because of the segfault in PHP <5.3.7 it will still return 137
Changed paths:
U phpdoc/doc-base/trunk/configure.php
Modified: phpdoc/doc-base/trunk/configure.php
===================================================================
--- phpdoc/doc-base/trunk/configure.php 2011-04-27 17:08:34 UTC (rev 310586)
+++ phpdoc/doc-base/trunk/configure.php 2011-04-27 17:38:14 UTC (rev 310587)
@@ -554,12 +554,18 @@
echo "Iterating over extension specific version files... ";
- if (file_exists($ac['rootdir'] . '/en/trunk')) {
- $globdir = $ac['rootdir'] . '/en/trunk';
- } else {
- $globdir = $ac['rootdir'] . '/en';
+ if ($ac["ONLYDIR"]) {
+ $globdir = $ac["ONLYDIR"] . "{/../,.}versions.xml";
}
- foreach(glob("$globdir/*/*/versions.xml") as $file) {
+ else {
+ if (file_exists($ac['rootdir'] . '/en/trunk')) {
+ $globdir = $ac['rootdir'] . '/en/trunk';
+ } else {
+ $globdir = $ac['rootdir'] . '/en';
+ }
+ $globdir .= "/*/*/versions.xml";
+ }
+ foreach(glob($globdir, GLOB_BRACE) as $file) {
if($tmp->load($file)) {
foreach($tmp->getElementsByTagName("function") as $function) {
$function = $dom->importNode($function, true);
@@ -757,6 +763,11 @@
print_xml_errors(false);
}
+ // Exit normally when don't care about validation
+ if ($ac["FORCE_DOM_SAVE"] == "yes") {
+ exit(0);
+ }
+
errors_are_bad(1); // Tell the shell that this script finished with an error.
}
?>