cvs: phpdoc /scripts missing-entities.php.in
| From: | Jeremy S. Johnstone | Date: | Mon, 14 Jul 2003 16:46:16 +0000 |
| Subject: | cvs: phpdoc /scripts missing-entities.php.in | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355199@lists.php.net to get a copy of this message | ||
jsjohnst Mon Jul 14 12:46:16 2003 EDT
Modified files:
/phpdoc/scripts missing-entities.php.in
Log:
Added check to the exec call to not have whitespace at the beginning of the command.
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.10 phpdoc/scripts/missing-entities.php.in:1.11
--- phpdoc/scripts/missing-entities.php.in:1.10 Sun Mar 16 19:11:11 2003
+++ phpdoc/scripts/missing-entities.php.in Mon Jul 14 12:46:16 2003
@@ -17,7 +17,7 @@
# | Gabor Hojtsy <goba@php.net> |
# +----------------------------------------------------------------------+
#
-# $Id: missing-entities.php.in,v 1.10 2003/03/17 00:11:11 ae Exp $
+# $Id: missing-entities.php.in,v 1.11 2003/07/14 16:46:16 jsjohnst Exp $
*/
set_time_limit(0);
@@ -41,10 +41,18 @@
}
// Execute a test of the manual
-exec(
- "@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i lang-@LANG@ -D . " .
- "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
-);
+if("@SP_OPTIONS@" == "") {
+ exec(
+ "$NSGMLS -f $NSGMLS_OUTPUT -i lang-@LANG@ -D . " .
+ "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
+ );
+}
+else {
+ exec(
+ "@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i lang-@LANG@ -D . " .
+ "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
+ );
+}
// Try to open files for rewriting
$ment = fopen("entities/missing-entities.ent", "w");