> Since my Cygwin is installed at c:/cygwin, the right absolute path can't 
> be created with pwd.
> 
> So is there any reason against letting do PHP the job instead of 
> autoconf and change the line 56 in  file-entities.php.in from
> 
> $out_dir = abs_path(preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", 
> "@WORKDIR@"));
> 
> to e.g.
> 
> $out_dir = preg_replace(array("!\\\!","!/scripts$!"), array("/",""), 
> getcwd());
> 
> (have I missed something in the hurry)?

Yes. As usual, the configure is not run form the phpdoc checkout
dir on the generator machine. What getcwd() returns, is the PHP
scripts directory, AFAIK, as PHP set the current directory to be
the script's directory (there may be a setting for it?). Thus the
value returned by getcwd() and the value in @WORKDIR@ are quite
different. This is why I have implemented some workarounds in
that preg replace thing... How you get into that directory where
pwd returns a string not conformant to cygwin standard
(/cygdrive/c/dir)?

Goba


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

Reply via email to