19
19
| Hannes Magnusson <bjori@php.net> |
20
20
| Gwynne Raskind <gwynne@php.net> |
21
21
+----------------------------------------------------------------------+
22
-
22
+
23
23
$Id$
24
24
*/
25
25
31
31
function usage () // {{{
32
32
{
33
33
global $ acd ;
34
-
34
+
35
35
echo <<<HELPCHUNK
36
36
configure.php configures this package to adapt to many kinds of systems, and PhD
37
37
builds too.
@@ -66,7 +66,7 @@ function usage() // {{{
66
66
--with-php=PATH Path to php CLI executable [detect]
67
67
--with-lang=LANG Language to build [ {$ acd ['LANG ' ]}]
68
68
--with-partial=my-xml-id Root ID to build (e.g. <book xml:id="MY-ID">) [ {$ acd ['PARTIAL ' ]}]
69
- --disable-broken-file-listing Do not ignore translated files in
69
+ --disable-broken-file-listing Do not ignore translated files in
70
70
broken-files.txt
71
71
--redirect-stderr-to-stdout Redirect STDERR to STDOUT. Use STDOUT as the
72
72
standard output for XML errors [ {$ acd ['STDERR_TO_STDOUT ' ]}]
@@ -97,7 +97,7 @@ function is_windows() {
97
97
function checking ($ for ) // {{{
98
98
{
99
99
global $ ac ;
100
-
100
+
101
101
if ($ ac ['quiet ' ] != 'yes ' ) {
102
102
echo "Checking {$ for }... " ;
103
103
flush ();
@@ -107,7 +107,7 @@ function checking($for) // {{{
107
107
function checkerror ($ msg ) // {{{
108
108
{
109
109
global $ ac ;
110
-
110
+
111
111
if ($ ac ['quiet ' ] != 'yes ' ) {
112
112
echo "\n" ;
113
113
}
@@ -118,7 +118,7 @@ function checkerror($msg) // {{{
118
118
function checkvalue ($ v ) // {{{
119
119
{
120
120
global $ ac ;
121
-
121
+
122
122
if ($ ac ['quiet ' ] != 'yes ' ) {
123
123
echo "{$ v }\n" ;
124
124
}
@@ -315,7 +315,7 @@ function print_xml_errors($details = true) {
315
315
} else {
316
316
continue ;
317
317
}
318
-
318
+
319
319
$ overridden_settings [] = strtoupper ($ o );
320
320
switch ($ o ) {
321
321
case 'h ' :
@@ -399,7 +399,7 @@ function print_xml_errors($details = true) {
399
399
case 'basedir ' :
400
400
$ ac ['basedir ' ] = $ v ;
401
401
break ;
402
-
402
+
403
403
case 'output ' :
404
404
$ ac ['OUTPUT_FILENAME ' ] = $ v ;
405
405
break ;
@@ -414,7 +414,7 @@ function print_xml_errors($details = true) {
414
414
case 'stderr-to-stdout ' :
415
415
$ ac ['STDERR_TO_STDOUT ' ] = $ v ;
416
416
break ;
417
-
417
+
418
418
case '' :
419
419
break ;
420
420
@@ -676,7 +676,7 @@ function print_xml_errors($details = true) {
676
676
echo "done. \n" ;
677
677
echo "Partial manual saved to {$ filename }. To build it, run 'phd -d {$ filename }' \n" ;
678
678
exit (0 );
679
- } // }}}
679
+ } // }}}
680
680
681
681
$ mxml = $ ac ["OUTPUT_FILENAME " ];
682
682
if ($ dom ->validate ()) {
@@ -722,7 +722,7 @@ function print_xml_errors($details = true) {
722
722
echo "\nThe document didn't validate, " ;
723
723
724
724
// Allow the .manual.xml file to be created, even if it is not valid.
725
- if ($ ac ['FORCE_DOM_SAVE ' ] == 'yes ' ) {
725
+ if ($ ac ['FORCE_DOM_SAVE ' ] == 'yes ' ) {
726
726
printf ("writing %s anyway, and " , basename ($ ac ["OUTPUT_FILENAME " ]));
727
727
if ($ ac ["SEGFAULT_SPEED " ] == "yes " ) {
728
728
$ t = $ dom ->doctype ;
@@ -757,3 +757,4 @@ function print_xml_errors($details = true) {
757
757
errors_are_bad (1 ); // Tell the shell that this script finished with an error.
758
758
}
759
759
?>
760
+
0 commit comments