configure has CRLF

John Labenski jlabenski at gmail.com
Mon Dec 4 08:40:43 PST 2006


On 12/4/06, Tim Stahlhut <stahta01 at highstream.net> wrote:
> FYI:
>
> I just re-installed cygwin and I remember an option to pick which line
> ending(DOS or UNIX), but I don't remeber one that supported both.
>
> Dave Silvia wrote:
>
> > Actually, cygwin has an option to use mixed line endings. It's available at
> > installation. Not sure how you'd go about changing it after the fact.
> >
> > In essence, if you pick this text only option (i.e. it only applies to text
> > files, like shell scripts) it will translate the line endings to LF (UNIX
> > convention) before trying to exec them. On writes, it translates to CRLF
> > (Windows convention). It's a handy option if you have a favorite editor/word
> > processor/etc that you use across the board (although, most of these also have
> > line ending options).

You can have the "best of both worlds" by installing w/ unix line
endings, but mounting the drives in a separate directory with CRLF
endings.

$mkdir /mnt/c   <-- to hold C:\ for example
$mount -t -f "c:/" "/mnt/c"

When you want to use unix line endings use /cygdrive/c and when you
want to use DOS line endings use /mnt/c.

I have used this successfully for years and if you always use /mnt/c
for CVS you don't have any problems with wrong line endings for
checkouts or commits.

Hope this helps,
    John Labenski




More information about the wx-users mailing list