jimw Sat Jul 6 21:38:40 2002 EDT Modified files: /phpdoc configure.in /phpdoc/scripts file-entities.php Log: this should fix the doc builds. YOU CAN NOT WRITE INTO $srcdir! Index: phpdoc/configure.in diff -u phpdoc/configure.in:1.154 phpdoc/configure.in:1.155 --- phpdoc/configure.in:1.154 Thu Jul 4 16:59:26 2002 +++ phpdoc/configure.in Sat Jul 6 21:38:39 2002 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.154 2002/07/04 20:59:26 jimw Exp $ +dnl $Id: configure.in,v 1.155 2002/07/07 01:38:39 jimw Exp $ dnl autoconf initialisation AC_INIT() @@ -834,7 +834,7 @@ if test $PHP != "no" then - $PHP -c $srcdir/scripts -q $srcdir/scripts/file-entities.php $srcdir $LANGDIR + $PHP -c $srcdir/scripts -q $srcdir/scripts/file-entities.php $srcdir $LANGDIR +`pwd` else for file in `find $srcdir/en -name "*.xml" | sed -e"s%^$srcdir\/en\/%%g" | sort` do Index: phpdoc/scripts/file-entities.php diff -u phpdoc/scripts/file-entities.php:1.8 phpdoc/scripts/file-entities.php:1.9 --- phpdoc/scripts/file-entities.php:1.8 Tue Jun 11 06:54:23 2002 +++ phpdoc/scripts/file-entities.php Sat Jul 6 21:38:40 2002 @@ -10,16 +10,19 @@ ob_implicit_flush(); set_time_limit(0); -$base_dir = str_replace("\\","/",abs_path($argv[$argc-2])); +$base_dir = str_replace("\\","/",abs_path($argv[$argc-3])); $base_dir=ereg_replace("/scripts$","",$base_dir); $orig_dir = $base_dir."/en"; -$trans_dir = $base_dir."/".$argv[$argc-1]; +$trans_dir = $base_dir."/".$argv[$argc-2]; + +$out_dir = $argv[$argc-1]; $entities = array(); process($orig_dir, $trans_dir, $orig_dir, $entities); -$fp = fopen("$base_dir/entities/file-entities.ent", "a"); +$fp = fopen("$out_dir/entities/file-entities.ent", "a") + or die("failed to open $out_dir/entities/file-entities.ent for writing"); foreach($entities as $entity) { fputs($fp, "$entity\n"); }
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php