cvs: phpdoc / configure.php
| From: | Gwynne Amaya Raskind | Date: | Thu, 24 Jan 2008 17:30:12 +0000 |
| Subject: | cvs: phpdoc / configure.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1076@lists.php.net to get a copy of this message | ||
gwynne Thu Jan 24 17:30:12 2008 UTC
Modified files:
/phpdoc configure.php
Log:
- A couple more Windows tweaks
- Fixed 'rm' call to work properly - corrects an odd alternating-failure issue
- Removed spurious error logic
http://cvs.php.net/viewvc.cgi/phpdoc/configure.php?r1=1.27&r2=1.28&diff_format=u
Index: phpdoc/configure.php
diff -u phpdoc/configure.php:1.27 phpdoc/configure.php:1.28
--- phpdoc/configure.php:1.27 Thu Jan 24 15:38:37 2008
+++ phpdoc/configure.php Thu Jan 24 17:30:12 2008
@@ -17,11 +17,11 @@
| Authors: Dave Barr <dave@php.net> |
+----------------------------------------------------------------------+
- $Id: configure.php,v 1.27 2008/01/24 15:38:37 gwynne Exp $
+ $Id: configure.php,v 1.28 2008/01/24 17:30:12 gwynne Exp $
*/
error_reporting(E_ALL);
-$cvs_id = '$Id: configure.php,v 1.27 2008/01/24 15:38:37 gwynne Exp $';
+$cvs_id = '$Id: configure.php,v 1.28 2008/01/24 17:30:12 gwynne Exp $';
echo "configure.php: $cvs_id\n";
@@ -97,7 +97,7 @@
if ($path == '') {
return '';
}
- return function_exists('realpath') ? realpath($path) : $path;
+ return str_replace('\\', '/', function_exists('realpath') ?
realpath($path) : $path);
} // }}}
function quietechorun($e) // {{{
@@ -176,7 +176,7 @@
$valid = true;
foreach($errors as $err) {
// Skip all XInclude errors
- if (!strpos($err->message, "include")) {
+ if (!strpos($err->message, 'element "xi:include"')) {
$valid = false;
$file = file(urldecode($err->file)); // libxml appears to urlencode() its errors
strings
@@ -243,7 +243,7 @@
'PEAR_SOURCE' => 'no',
'PECL_SOURCE' => 'no',
'EXT_SOURCE' => 'no',
- 'CYGWIN' => 'no',
+ 'CYGWIN' => '0',
'WINJADE' => '0',
'NSGMLS' => 'no',
'SP_OPTIONS' => 'SP_ENCODING=XML SP_CHARSET_FIXED=YES',
@@ -458,7 +458,7 @@
$redir = ($ac['quiet'] == 'yes') ? " > /dev/null" : '';
quietechorun("\"{$ac['PHP']}\"{$ini} -q
\"{$ac['srcdir']}/scripts/file-entities.php\"{$redir}");
echo "file-entities.php is done.\n";
-quietechorun("rm -f \"{$ac['srcdir']}/entities/missing*\"");
+quietechorun("rm \"{$ac['srcdir']}/entities/\"missing*");
quietechorun("\"{$ac['PHP']}\"{$ini} -q
\"{$ac['srcdir']}/scripts/missing-entities.php\"{$redir}");
echo "missing-entities.php is done.\n";
@@ -467,14 +467,10 @@
$dom = new DOMDocument();
$didLoad = $dom->load( "{$ac['srcdir']}/manual.xml", LIBXML_DTDLOAD |
LIBXML_NOENT );
-// XXX: What errors can happen here that aren't fatal? Why do we continue only if we want a
forced save?
if ($didLoad === false) {
if (print_xml_errors() === true) {
echo "These errors came from load(). We can't save a partial
.manual.xml.\n";
- exit(1);
}
-} else if (print_xml_errors() === true && $ac['FORCE_DOM_SAVE'] ==
'no') {
- echo "Not sure what happened here, but we're bailing!\n";
exit(1);
}
@@ -530,8 +526,6 @@
} else {
echo "Didn't write .manual.xml. Sorry.\n";
}
- } else {
- echo "This doesn't seem quite right. Validation failed but there aren't any
errors.\n";
}
exit(1); // Tell the shell that this script finished with an error.
}