Mail Archives: djgpp-workers/1999/03/23/04:02:47
From: "Mark E." <snowball3 AT usa DOT net>
# The following is needed, to get not the // syntax, when
# the configure script or the makefile calls pwd
current_drive=`pwd | sed 's,//\(.\).*,\1,'`
export SYSROOT=$current_drive:/
IMHO, that's a wrong work-around for the problem, even in theprevious
version of Bash. The right way to do it is to say this:
current_drive=`echo.exe $pwd` etc...
The magic use of echo.exe will cause Bash to convert the //c/foo into
c:/foo stuff. (I'm sorry I cannot test the above now, so you might
need to experiment a bit to get it right.) The trick is to call some
external program, so that Bash knows it has to convert the //c/foo
format. This should work in Bash 2.03 as well, even if it doesn't
convert //c/foo pathnames when invoking programs.
- Raw text -