[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2007-06-24 Thread Hannes Magnusson
bjori   Sun Jun 24 23:08:19 2007 UTC

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  iDocbook5 upgrade
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/missing-entities.php.in?r1=1.26&r2=1.27&diff_format=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.26 
phpdoc/scripts/missing-entities.php.in:1.27
--- phpdoc/scripts/missing-entities.php.in:1.26 Wed Jun  6 12:46:44 2007
+++ phpdoc/scripts/missing-entities.php.in  Sun Jun 24 23:08:19 2007
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.26 2007/06/06 12:46:44 bjori Exp $
+  $Id: missing-entities.php.in,v 1.27 2007/06/24 23:08:19 bjori Exp $
 */
 
 set_time_limit(0);
@@ -103,8 +103,8 @@
 // missing ID found
 else if (strpos($line, "non-existent") !== FALSE) {
  preg_match('!(?<=ID.)".+"!', $line, $id);
-$missing_ids[] = "\n";
-$missing_ids_display[] = "id=" .  $id[0] . "\n";
+$missing_ids[] = "\n";
+$missing_ids_display[] = "xml:id=" .  $id[0] . "\n";
 }
 }
 
@@ -131,7 +131,7 @@
 // If we have missing IDs, write them out as an appendix
 if (count($missing_ids) > 0) {
 
-fwrite($mids, "&MissingStuff;\n");
+fwrite($mids, "&MissingStuff;\n");
 foreach ($missing_ids as $idpara) {
 fwrite($mids, $idpara);
 }


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2007-06-06 Thread Hannes Magnusson
bjori   Wed Jun  6 12:46:44 2007 UTC

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  Bail out if nsgmls is unavailable
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/missing-entities.php.in?r1=1.25&r2=1.26&diff_format=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.25 
phpdoc/scripts/missing-entities.php.in:1.26
--- phpdoc/scripts/missing-entities.php.in:1.25 Mon Jan 22 15:59:32 2007
+++ phpdoc/scripts/missing-entities.php.in  Wed Jun  6 12:46:44 2007
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.25 2007/01/22 15:59:32 bjori Exp $
+  $Id: missing-entities.php.in,v 1.26 2007/06/06 12:46:44 bjori Exp $
 */
 
 set_time_limit(0);
@@ -35,6 +35,13 @@
 $NSGMLS = "@NSGMLS@"; 
 $NSGMLS_OUTPUT = "missing-entities.out"; 
 
+if($NSGMLS == "no") {
+touch("entities/missing-ids.xml");
+touch("entities/missing-entities.ent");
+echo "nsgmls unavailable\n";
+return;
+}
+
 // Support for Windows systems
 $windows = (strpos(PHP_OS, 'WIN') !== false);
 


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2006-01-14 Thread Antony Dovgal
tony2001Sat Jan 14 22:02:30 2006 UTC

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  silence notices and warnings
  
  
http://cvs.php.net/viewcvs.cgi/phpdoc/scripts/missing-entities.php.in?r1=1.23&r2=1.24&diff_format=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.23 
phpdoc/scripts/missing-entities.php.in:1.24
--- phpdoc/scripts/missing-entities.php.in:1.23 Sat Sep 24 23:26:48 2005
+++ phpdoc/scripts/missing-entities.php.in  Sat Jan 14 22:02:30 2006
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.23 2005/09/24 23:26:48 nlopess Exp $
+  $Id: missing-entities.php.in,v 1.24 2006/01/14 22:02:30 tony2001 Exp $
 */
 
 set_time_limit(0);
@@ -110,7 +110,7 @@
 sort($missing_entities);
 
 // missing ids for display
-$missing_ids_display=array_unique($missing_ids_display);
+$missing_ids_display=isset($missing_ids_display) ? 
array_unique($missing_ids_display) : array();
 sort($missing_ids_display);
 
 // Write out missing entities to file


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2005-09-24 Thread Nuno Lopes
nlopess Sat Sep 24 19:26:49 2005 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  fix cygwin testing
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.22&r2=1.23&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.22 
phpdoc/scripts/missing-entities.php.in:1.23
--- phpdoc/scripts/missing-entities.php.in:1.22 Thu Sep 22 10:48:36 2005
+++ phpdoc/scripts/missing-entities.php.in  Sat Sep 24 19:26:48 2005
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.22 2005/09/22 14:48:36 techtonik Exp $
+  $Id: missing-entities.php.in,v 1.23 2005/09/24 23:26:48 nlopess Exp $
 */
 
 set_time_limit(0);
@@ -45,9 +45,10 @@
 && (strpos(php_uname(), 'CYGWIN') === false)
 && (strncmp($NSGMLS, "/usr/bin/", 9) === 0)) 
 {
-   $cygbin = exec("cygpath -d /usr/bin/");
-$NSGMLS = preg_replace("!^/usr/bin/!", $cygbin, $NSGMLS);
+$cygbin = trim(`cygpath -d /usr/bin/`);
+$NSGMLS = preg_replace('!^/usr/bin/!', $cygbin, $NSGMLS) . '.exe';
 }
+
 // '..' components are not allowed in exec path to executable
 $NSGMLS = realpath($NSGMLS);
 


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2005-09-22 Thread anatoly techtonik
techtonik   Thu Sep 22 10:48:42 2005 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  - '..' components are not allowed in exec path to executable
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.21&r2=1.22&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.21 
phpdoc/scripts/missing-entities.php.in:1.22
--- phpdoc/scripts/missing-entities.php.in:1.21 Thu Sep 22 05:50:30 2005
+++ phpdoc/scripts/missing-entities.php.in  Thu Sep 22 10:48:36 2005
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.21 2005/09/22 09:50:30 techtonik Exp $
+  $Id: missing-entities.php.in,v 1.22 2005/09/22 14:48:36 techtonik Exp $
 */
 
 set_time_limit(0);
@@ -48,6 +48,8 @@
$cygbin = exec("cygpath -d /usr/bin/");
 $NSGMLS = preg_replace("!^/usr/bin/!", $cygbin, $NSGMLS);
 }
+// '..' components are not allowed in exec path to executable
+$NSGMLS = realpath($NSGMLS);
 
 
 // Execute a test of the manual


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2005-09-22 Thread anatoly techtonik
techtonik   Thu Sep 22 05:50:31 2005 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  - fix cygwin path issues finally
  * set environment variables within PHP rather from shell
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.20&r2=1.21&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.20 
phpdoc/scripts/missing-entities.php.in:1.21
--- phpdoc/scripts/missing-entities.php.in:1.20 Thu Sep 15 04:16:45 2005
+++ phpdoc/scripts/missing-entities.php.in  Thu Sep 22 05:50:30 2005
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.20 2005/09/15 08:16:45 betz Exp $
+  $Id: missing-entities.php.in,v 1.21 2005/09/22 09:50:30 techtonik Exp $
 */
 
 set_time_limit(0);
@@ -38,26 +38,25 @@
 // Support for Windows systems
 $windows = (strpos(PHP_OS, 'WIN') !== false);
 
-// If PHP wasn't compiled on Cygwin, the path needs to be fixed.
-// cygwin's path is hardcoded to C:\cygwin. change it if needed
-if ($windows && (strpos(php_uname(), 'CYGWIN') === false)) {
-$NSGMLS = preg_replace('@/usr/bin/(.+)@', 'C:\cygwin\bin\1.exe', 
$NSGMLS);
+// If PHP wasn't compiled on Cygwin, then the path to NSGMLS (if it is
+// *nix path in case NSGMLS is installed via Cygwin setup) should be
+// fixed for exec command to work
+if ($windows 
+&& (strpos(php_uname(), 'CYGWIN') === false)
+&& (strncmp($NSGMLS, "/usr/bin/", 9) === 0)) 
+{
+   $cygbin = exec("cygpath -d /usr/bin/");
+$NSGMLS = preg_replace("!^/usr/bin/!", $cygbin, $NSGMLS);
 }
 
 
 // Execute a test of the manual
-if("@SP_OPTIONS@" == "" || substr(PHP_OS, 0, 3) == 'WIN') {
-exec(
-"$NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
-"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
-);
-}
-else {
-exec(
-"@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
-"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
-);
-}
+$envy = explode(" ", "@SP_OPTIONS@");
+array_map('putenv', $envy);
+exec(
+"$NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -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");


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2005-09-15 Thread Friedhelm Betz
betzThu Sep 15 04:16:46 2005 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  support for xreflabel, avoids warnings like xref on para not supported
  missing-ids.xml is back iin entities/ (see rev 1.17)
  
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.19&r2=1.20&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.19 
phpdoc/scripts/missing-entities.php.in:1.20
--- phpdoc/scripts/missing-entities.php.in:1.19 Sun Aug 21 12:27:08 2005
+++ phpdoc/scripts/missing-entities.php.in  Thu Sep 15 04:16:45 2005
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.19 2005/08/21 16:27:08 goba Exp $
+  $Id: missing-entities.php.in,v 1.20 2005/09/15 08:16:45 betz Exp $
 */
 
 set_time_limit(0);
@@ -93,7 +93,9 @@
 
 // missing ID found
 else if (strpos($line, "non-existent") !== FALSE) {
-$missing_ids[] = preg_replace("!^.* ID !", " \n";
+ preg_match('!(?<=ID.)".+"!', $line, $id);
+$missing_ids[] = "\n";
+$missing_ids_display[] = "id=" .  $id[0] . "\n";
 }
 }
 
@@ -105,6 +107,10 @@
 sort($missing_ids);
 sort($missing_entities);
 
+// missing ids for display
+$missing_ids_display=array_unique($missing_ids_display);
+sort($missing_ids_display);
+
 // Write out missing entities to file
 foreach ($missing_entities as $ent) {
 fwrite($ment, $ent);
@@ -136,9 +142,9 @@
 echo "* No missing entities were found\n";
 }
 
-echo "\nCreated file: @LANGDIR@/missing-ids.xml\n";
-if (!empty($missing_ids)) {
-foreach ($missing_ids as $k => $v) {
+echo "\nCreated file: entities/missing-ids.xml\n";
+if (!empty($missing_ids_display)) {
+foreach ($missing_ids_display as $k => $v) {
 echo "* " . preg_replace('@[\s]+@', ' ', $v) . "\n";
 }
 } else {


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2005-08-01 Thread Nuno Lopes
nlopess Mon Aug  1 07:00:29 2005 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  try tp fix the windows missing ids search when using cygwin's openjade & 
standard PHP (usual setup)
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.17&r2=1.18&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.17 
phpdoc/scripts/missing-entities.php.in:1.18
--- phpdoc/scripts/missing-entities.php.in:1.17 Wed Feb  9 18:46:00 2005
+++ phpdoc/scripts/missing-entities.php.in  Mon Aug  1 07:00:27 2005
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.17 2005/02/09 23:46:00 hholzgra Exp $
+  $Id: missing-entities.php.in,v 1.18 2005/08/01 11:00:27 nlopess Exp $
 */
 
 set_time_limit(0);
@@ -36,10 +36,15 @@
 $NSGMLS_OUTPUT = "missing-entities.out"; 
 
 // Support for Windows systems
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-$NSGMLS = str_replace("/", "\\", "$NSGMLS");
+$windows = (strpos(PHP_OS, 'WIN') !== false);
+
+// If PHP wasn't compiled on Cygwin, the path needs to be fixed.
+// cygwin's path is hardcoded to C:\cygwin. change it if needed
+if ($windows && (strpos(php_uname(), 'CYGWIN') === false)) {
+$NSGMLS = preg_replace('@/usr/bin/(.+)@', 'C:\cygwin\bin\1.exe', 
$NSGMLS);
 }
 
+
 // Execute a test of the manual
 if("@SP_OPTIONS@" == "" || substr(PHP_OS, 0, 3) == 'WIN') {
 exec(


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2004-12-23 Thread Dallas Thunder
dallas  Thu Dec 23 15:58:08 2004 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  For Chinses language to work, no effect to other languages.
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.15&r2=1.16&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.15 
phpdoc/scripts/missing-entities.php.in:1.16
--- phpdoc/scripts/missing-entities.php.in:1.15 Sat Nov 13 07:45:37 2004
+++ phpdoc/scripts/missing-entities.php.in  Thu Dec 23 15:58:07 2004
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.15 2004/11/13 12:45:37 nlopess Exp $
+  $Id: missing-entities.php.in,v 1.16 2004/12/23 20:58:07 dallas Exp $
 */
 
 set_time_limit(0);
@@ -56,7 +56,7 @@
 
 // Try to open files for rewriting
 $ment = fopen("entities/missing-entities.ent", "w");
-$mids = fopen("@LANG@/missing-ids.xml", "w");
+$mids = fopen("@LANGDIR@/missing-ids.xml", "w");
 
 // Exit if we cannot rewrite the files
 if (!$ment || !$mids) {
@@ -131,7 +131,7 @@
 echo "* No missing entities were found\n";
 }
 
-echo "\nCreated file: @LANG@/missing-ids.xml\n";
+echo "\nCreated file: @LANGDIR@/missing-ids.xml\n";
 if (!empty($missing_ids)) {
 foreach ($missing_ids as $k => $v) {
 if (false !== strpos('

[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2004-11-13 Thread Nuno Lopes
nlopess Sat Nov 13 07:45:39 2004 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  windows doesnt support environment vars in exec()
  so remove them :)
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.14&r2=1.15&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.14 
phpdoc/scripts/missing-entities.php.in:1.15
--- phpdoc/scripts/missing-entities.php.in:1.14 Thu Sep  2 18:28:30 2004
+++ phpdoc/scripts/missing-entities.php.in  Sat Nov 13 07:45:37 2004
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.14 2004/09/02 22:28:30 goba Exp $
+  $Id: missing-entities.php.in,v 1.15 2004/11/13 12:45:37 nlopess Exp $
 */
 
 set_time_limit(0);
@@ -41,7 +41,7 @@
 }
 
 // Execute a test of the manual
-if("@SP_OPTIONS@" == "") {
+if("@SP_OPTIONS@" == "" || substr(PHP_OS, 0, 3) == 'WIN') {
 exec(
 "$NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
 "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"


[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2003-07-14 Thread Jeremy S. Johnstone
jsjohnstMon 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 <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $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 [EMAIL PROTECTED]@ -D . " .
-"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
-);
+if("@SP_OPTIONS@" == "") {
+exec(
+"$NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
+"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
+);
+}
+else {
+exec(
+"@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -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");



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2003-03-17 Thread André LFS Bacci

Yes, I tested this Linux too (in the truth, I asked for to the staff of the
pt_BR translation that made).

It's good for knowing that they exist plus some smiling faces around of the
globe for this.

[]s

André

PS: About the ~has no meaning~:
Cygwin calls PHP (win32 binaries) that calls exec() that calls the
operational system (here, MS-DOS prompt, not Cygwin prompt) where 2>&1 has
no meaning ;)

2>&1 substituted by -f of nsgmls... may will be work in all plataforms

| Have you tested this on linux? It was there for some reason,
| and while it has no meaning, it definitely worked (for me and
| for some other quys too!)
|
| Goba
|
| - Original Message -
| From: "André Luis Ferreira da Silva Bacci" <[EMAIL PROTECTED]>
| To: <[EMAIL PROTECTED]>
| Sent: Monday, March 17, 2003 1:11 AM
| Subject: [PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in
|
|
| > ae Sun Mar 16 19:11:11 2003 EDT
| >
| >   Modified files:
| > /phpdoc/scripts missing-entities.php.in
| >   Log:
| >   solve, definitively, the problem on ./configure in Windows machines
| (2>&1 has no meaning in exec() for PHP win32 binaries)


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2003-03-17 Thread Gabor Hojtsy
Have you tested this on linux? It was there for some reason,
and while it has no meaning, it definitely worked (for me and
for some other quys too!)

Goba

- Original Message -
From: "André Luis Ferreira da Silva Bacci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 1:11 AM
Subject: [PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in


> ae Sun Mar 16 19:11:11 2003 EDT
>
>   Modified files:
> /phpdoc/scripts missing-entities.php.in
>   Log:
>   solve, definitively, the problem on ./configure in Windows machines
(2>&1 has no meaning in exec() for PHP win32 binaries)
>
> Index: phpdoc/scripts/missing-entities.php.in
> diff -u phpdoc/scripts/missing-entities.php.in:1.9
phpdoc/scripts/missing-entities.php.in:1.10
> --- phpdoc/scripts/missing-entities.php.in:1.9 Mon Nov 25 07:29:59 2002
> +++ phpdoc/scripts/missing-entities.php.in Sun Mar 16 19:11:11 2003
> @@ -17,9 +17,11 @@
>  # | Gabor Hojtsy <[EMAIL PROTECTED]>
|
>  #
+--+
>  #
> -# $Id: missing-entities.php.in,v 1.9 2002/11/25 12:29:59 hholzgra Exp $
> +# $Id: missing-entities.php.in,v 1.10 2003/03/17 00:11:11 ae Exp $
>  */
>
> +set_time_limit(0);
> +
>  // Print out info for the viewer and log files
>  echo "\ntesting the manual for missing elements...\n";
>
> @@ -31,6 +33,7 @@
>  }
>
>  $NSGMLS = "@NSGMLS@";
> +$NSGMLS_OUTPUT = "missing-entities.out";
>
>  // Support for Windows systems
>  if (substr(PHP_OS, 0, 3) == 'WIN') {
> @@ -39,10 +42,8 @@
>
>  // Execute a test of the manual
>  exec(
> -"@SP_OPTIONS@ $NSGMLS -i [EMAIL PROTECTED]@ -D . " .
> -"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml 2>&1",
> -$results,
> -$retcode
> +"@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
> +"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
>  );
>
>  // Try to open files for rewriting
> @@ -62,8 +63,13 @@
>  $missing_ids = array();
>  $missing_entities = array();
>
> +// Open output file
> +$results = file($NSGMLS_OUTPUT);
> +
>  // Try to find missing IDs and entities
>  foreach ($results as $line) {
> +
> +trim($line);
>
>  // missing entity found
>  if (strpos($line, "not defined") !== FALSE) {
>
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2003-03-16 Thread André Luis Ferreira da Silva Bacci
ae  Sun Mar 16 19:11:11 2003 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  solve, definitively, the problem on ./configure in Windows machines (2>&1 has no 
meaning in exec() for PHP win32 binaries)
  
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.9 
phpdoc/scripts/missing-entities.php.in:1.10
--- phpdoc/scripts/missing-entities.php.in:1.9  Mon Nov 25 07:29:59 2002
+++ phpdoc/scripts/missing-entities.php.in  Sun Mar 16 19:11:11 2003
@@ -17,9 +17,11 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: missing-entities.php.in,v 1.9 2002/11/25 12:29:59 hholzgra Exp $
+# $Id: missing-entities.php.in,v 1.10 2003/03/17 00:11:11 ae Exp $
 */
 
+set_time_limit(0);
+
 // Print out info for the viewer and log files
 echo "\ntesting the manual for missing elements...\n";
 
@@ -31,6 +33,7 @@
 }
 
 $NSGMLS = "@NSGMLS@"; 
+$NSGMLS_OUTPUT = "missing-entities.out"; 
 
 // Support for Windows systems
 if (substr(PHP_OS, 0, 3) == 'WIN') {
@@ -39,10 +42,8 @@
 
 // Execute a test of the manual
 exec(
-"@SP_OPTIONS@ $NSGMLS -i [EMAIL PROTECTED]@ -D . " .
-"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml 2>&1",
-$results,
-$retcode
+"@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
+"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
 );
 
 // Try to open files for rewriting
@@ -62,8 +63,13 @@
 $missing_ids = array();
 $missing_entities = array();
 
+// Open output file
+$results = file($NSGMLS_OUTPUT);
+
 // Try to find missing IDs and entities
 foreach ($results as $line) {
+
+trim($line);
 
 // missing entity found
 if (strpos($line, "not defined") !== FALSE) {



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2002-08-30 Thread Gabor Hojtsy

gobaFri Aug 30 05:05:54 2002 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  Heh, there is no g modifier, it's the default...
  
  
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.7 
phpdoc/scripts/missing-entities.php.in:1.8
--- phpdoc/scripts/missing-entities.php.in:1.7  Thu Aug  8 05:54:21 2002
+++ phpdoc/scripts/missing-entities.php.in  Fri Aug 30 05:05:54 2002
@@ -17,7 +17,7 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: missing-entities.php.in,v 1.7 2002/08/08 09:54:21 goba Exp $
+# $Id: missing-entities.php.in,v 1.8 2002/08/30 09:05:54 goba Exp $
 */
 
 // Print out info for the viewer and log files
@@ -67,8 +67,8 @@
 
 // missing entity found
 if (strpos($line, "not defined") !== FALSE) {
-$line = preg_replace('!^.[^"]*"!g', '', $line);
+$line = preg_replace('!^.[^"]*"!', '', $line);
 $missing_entities[] = $line;
 }
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2002-08-03 Thread Gabor Hojtsy

gobaSat Aug  3 08:59:10 2002 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  Adding an extra line before output
  
  
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.3 
phpdoc/scripts/missing-entities.php.in:1.4
--- phpdoc/scripts/missing-entities.php.in:1.3  Sat Aug  3 08:33:06 2002
+++ phpdoc/scripts/missing-entities.php.in  Sat Aug  3 08:59:10 2002
@@ -17,11 +17,11 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: missing-entities.php.in,v 1.3 2002/08/03 12:33:06 goba Exp $
+# $Id: missing-entities.php.in,v 1.4 2002/08/03 12:59:10 goba Exp $
 */
 
 // Print out info for the viewer and log files
-echo "testing the manual for missing elements...\n";
+echo "\ntesting the manual for missing elements...\n";
 
 // If we are in a scripts dir, go one dir up
 // (because the NSGMLS path is relative to that directory!)
@@ -90,7 +90,7 @@
 fclose($ment);
 
 // print out success info
-echo " missing-entities.ent created\n";
+echo " entities/missing-entities.ent created\n";
 
 // If we have missing IDs, write them out as an appendix
 if (count($missing_ids) > 0) {
@@ -106,6 +106,6 @@
 fclose($mids);
 
 // print out success info
-echo " missing-ids.xml created\n";
+echo " entities/missing-ids.xml created\n";
 
 ?>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2002-08-03 Thread Gabor Hojtsy

gobaSat Aug  3 08:33:06 2002 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  Adding output to the script for the log files
  
  
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.2 
phpdoc/scripts/missing-entities.php.in:1.3
--- phpdoc/scripts/missing-entities.php.in:1.2  Wed Jul 31 10:14:27 2002
+++ phpdoc/scripts/missing-entities.php.in  Sat Aug  3 08:33:06 2002
@@ -17,9 +17,12 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: missing-entities.php.in,v 1.2 2002/07/31 14:14:27 goba Exp $
+# $Id: missing-entities.php.in,v 1.3 2002/08/03 12:33:06 goba Exp $
 */
 
+// Print out info for the viewer and log files
+echo "testing the manual for missing elements...\n";
+
 // If we are in a scripts dir, go one dir up
 // (because the NSGMLS path is relative to that directory!)
 $wrkdir = getcwd();
@@ -86,6 +89,9 @@
 // That's all for missing entities
 fclose($ment);
 
+// print out success info
+echo " missing-entities.ent created\n";
+
 // If we have missing IDs, write them out as an appendix
 if (count($missing_ids) > 0) {
 
@@ -98,5 +104,8 @@
 
 // That's all for missing IDs
 fclose($mids);
+
+// print out success info
+echo " missing-ids.xml created\n";
 
 ?>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2002-07-31 Thread Gabor Hojtsy

gobaWed Jul 31 10:14:28 2002 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  So error corrections after some testing:
  
   - change directory to working directory
   - windows uses \ instead of / in path :((
   - sort does not return an array (unlike other array functions, huh)
   - maybe other simple modifications
  
  
  
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.1 
phpdoc/scripts/missing-entities.php.in:1.2
--- phpdoc/scripts/missing-entities.php.in:1.1  Wed Jul 31 08:14:14 2002
+++ phpdoc/scripts/missing-entities.php.in  Wed Jul 31 10:14:27 2002
@@ -17,14 +17,25 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: missing-entities.php.in,v 1.1 2002/07/31 12:14:14 goba Exp $
+# $Id: missing-entities.php.in,v 1.2 2002/07/31 14:14:27 goba Exp $
 */
 
+// If we are in a scripts dir, go one dir up
+// (because the NSGMLS path is relative to that directory!)
+$wrkdir = getcwd();
+if (strpos($wrkdir, "scripts") !== FALSE) {
+chdir("..");
+}
+
+// Support for Windows systems
+$NSGMLS = str_replace("/", "\\", "@NSGMLS@");
+
 // Execute a test of the manual
 exec(
-"@SP_OPTIONS@ @NSGMLS@ -i lang-@LANG@ -D . " .
+"@SP_OPTIONS@ $NSGMLS -i lang-@LANG@ -D . " .
 "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml 2>&1",
-$results
+$results,
+$retcode
 );
 
 // Try to open files for rewriting
@@ -55,9 +66,7 @@
 
 // missing ID found
 else if (strpos($line, "non-existent") !== FALSE) {
-$line = preg_replace('!^.* ID !g', ' ', $line);
-$missing_ids[] = $line;
+$missing_ids[] = preg_replace("!^.* ID !", " \n";
 }
 }
 
@@ -66,8 +75,8 @@
 $missing_entities = array_unique($missing_entities);
 
 // Sort elements (just to make handwork easier, if needed)
-$missing_ids = sort($missing_ids);
-$missing_entities = sort($missing_entities);
+sort($missing_ids);
+sort($missing_entities);
 
 // Write out missing entities to file
 foreach ($missing_entities as $ent) {



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /scripts missing-entities.php.in

2002-07-31 Thread Gabor Hojtsy

gobaWed Jul 31 08:14:14 2002 EDT

  Added files: 
/phpdoc/scripts missing-entities.php.in 
  Log:
  Adding PHP port of missing-entities script here. This also doubles
  the speed of the missing-entities.ent and missing-ids.xml generation,
  as it only runs NSGMLS once, not twice ;) Still not really tested, as
  I am waiting for the online generation system to finally generate one
  PHP version since a week... There were always build errors... Then the
  build system will be switched to use this PHP version... And we'll see
  if it will break anything again ;))
  
  

Index: phpdoc/scripts/missing-entities.php.in
+++ phpdoc/scripts/missing-entities.php.in
http://www.php.net/license/2_02.txt. |
# | If uou did not receive a copy of the PHP license and are unable to   |
# | obtain it through the world wide web, please send a note to  |
# | [EMAIL PROTECTED] so we can mail you a copy immediately|
# +--+
# | Authors:Hartmut Holzgraefe <[EMAIL PROTECTED]>  |
# | Gabor Hojtsy <[EMAIL PROTECTED]>  |
# +--+
# 
# $Id: missing-entities.php.in,v 1.1 2002/07/31 12:14:14 goba Exp $
*/

// Execute a test of the manual
exec(
"@SP_OPTIONS@ @NSGMLS@ -i lang-@LANG@ -D . " .
"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml 2>&1",
$results
);

// Try to open files for rewriting
$ment = fopen("entities/missing-entities.ent", "w");
$mids = fopen("entities/missing-ids.xml", "w");

// Exit if we cannot rewrite the files
if (!$ment || !$mids) {
die("ERROR: Cannot open files for writing\n");
}

// Write out XML declaration
fwrite($ment, "<" . "?xml version='1.0' encoding='iso-8859-1'?>\n\n");
fwrite($mids, "<" . "?xml version='1.0' encoding='iso-8859-1'?>\n\n");

// Initalize arrays
$missing_ids = array(); $missing_ents = array();

// Try to find missing IDs and entities
foreach ($results as $line) {

// missing entity found
if (strpos($line, "not defined") !== FALSE) {
$line = preg_replace('!^.[^"]*"!g', '', $line);
$missing_entities[] = $line;
}

// missing ID found
else if (strpos($line, "non-existent") !== FALSE) {
$line = preg_replace('!^.* ID !g', ' ', $line);
$missing_ids[] = $line;
}
}

// Find unique elements (one error message can occur several times)
$missing_ids = array_unique($missing_ids);
$missing_entities = array_unique($missing_entities);

// Sort elements (just to make handwork easier, if needed)
$missing_ids = sort($missing_ids);
$missing_entities = sort($missing_entities);

// Write out missing entities to file
foreach ($missing_entities as $ent) {
fwrite($ment, $ent);
}

// That's all for missing entities
fclose($ment);

// If we have missing IDs, write them out as an appendix
if (count($missing_ids) > 0) {

fwrite($mids, "&MissingStuff;\n");
foreach ($missing_ids as $idpara) {
fwrite($mids, $idpara);
}
fwrite($mids, "\n");
}

// That's all for missing IDs
fclose($mids);

?>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php