[project @ 2002-11-18 17:01:01 by simonpj]
authorsimonpj <unknown>
Mon, 18 Nov 2002 17:01:03 +0000 (17:01 +0000)
committersimonpj <unknown>
Mon, 18 Nov 2002 17:01:03 +0000 (17:01 +0000)
commit0638e7d81533677f5c821a8ec3565b2b32c5543e
tree3e016217e3931ed600fa0c9b7f2dd703fc29de0b
parenta4a1d352cb16d1e7017b52fc0b657c72db3e0224
[project @ 2002-11-18 17:01:01 by simonpj]
-----------------------------
Perl and control-M's on Win32
-----------------------------

If the Cygwin 'perl' processes a file produced by a Mingw program
(such as ghc -M), so that the latter has DOS-style line termination,
the Cygwin 'perl' gets confused and adds extra control-M's.

This affects
a) mkdependC, which processes the .depend file produced by
ghc -M
b) the perl post-procssing step in ghc/compiler/Makefile,
which makes .depend-1 etc from .depend-BASE

The solution is to sprinkle few
binmode( HANDLE );
statements around in the perl scripts.

I think they don't affect the Unix version.
ghc/compiler/Makefile
glafp-utils/mkdependC/mkdependC.prl