wrong detection of inUnix ?? [Re: [fpc-devel] fcl-WEB build broken]
fpc at mfriebe.de
Fri Jun 10 23:51:15 CEST 2011
On 10/06/2011 22:31, Jonas Maebe wrote:
>> This happened during a full make (after a full "make clean")
>> So both compiler and rtl should have been build, before packages? fcl-web is then probably just the first package....
> fcl-web is the only package that currently uses fpmake for building.
>> btw: isn't ";" a valid char in a unix pathname?
> Yes, but it's quite rare. It's simply the best way we have found to detect Unix environments via the Makefile. A better way is always welcome.
I am no expert at this, but for example a "/" is not allowed in windows
filenames (so it should not be in windows path at all. Of course a user
can still put it in there...)
On unix, it is likely to be there => unless the path is almost empty
Can the makefile check the existence of a directory? (and would this
check obey the \/ difference?)
If so (the root directory) / should always exist on unix.
But on windows "/" is not allowed in filenames, and can not exist.
Only I do not know, what happens with mounted filesystems....
or test if ./known.file exists...
More information about the fpc-devel