J. David Bryan wrote:
On 9 Nov 2001, at 20:42, Prof Abimbola Olowofoyeku wrote:
Also, it could be solved during GPC installation by copying "specs" in such a way that the source and destination directory mount types are considered.
How would one do that without writing a special installation script for GPC?
That's true, if it is desired to have "specs" have CR-LF line ends when installed in a text-mount directory and LF line ends when installed in a binary-mount directory. However, if the convenience of manipulating specs as a normal Windows text file isn't needed, then simply ensuring that it has LF line ends will work in either situation. Adding a "tr -d '\r' ..." to the GPC makefile after the specs file creation should do it.
I think it's simpler to do the translation when reading it (and safer, in case the users copies the file around manually or something). That's what my patch (last time) does. So, shouldn't we just use this patch and close this part of the debate? ;-)
I believe that it's only a problem for Cygwin, and then only a problem if the particular directories involved are mounted in different modes, but I'll investigate this a little more and report back later.
I think there's at least a possibility for it to occur on other Dos-based systems (though I've never had this problem under DJGPP so far).
Frank