info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing DOS line endings on checkout/update


From: Mike Castle
Subject: Re: Forcing DOS line endings on checkout/update
Date: Tue, 31 Jul 2001 12:34:25 -0700
User-agent: Mutt/1.3.18i

On Tue, Jul 31, 2001 at 02:43:38PM -0400, Alleman, Lowell wrote:
> I have a hard time believing that no one else has needed this feature
> before. I'm surprised that there isn't some environmental variable that you
> can just set, like 'CVS_ENV=DOS' which would setup the end of line modes.

CVS always has (and hopefully, always will!) used the default text mode of
the system it is running on.

If you want it to check out things in DOS format, then run it on a machine
that supports DOS format natively.

I mean, what if you needed to share the files out to a MAC?  Would you
expect cvs to check things using that file format as well?  There are
simply too many variables to get right.  Too much risk associated with
getting it wrong.

> Any ideas on the safest way to set this up without modifying CVS or the
> libraries that it is linked to?  Has anybody else run up against this issue?

Your best solution is to set up some system on a win32 machine that, when
a commit script is ran on the unix side, it sends some sort of message to
the win32 (or Mac) machine.  When that message is received, it does a
simple 'cvs up' and waits for the next signal.  Something simple could
probably be worked up in perl or tcl in a few minutes.  A little more time
to get it robust (ie, what happens if two commits done by different people,
are done near the same time, do they all really get properly noted and
updated?)

mrc
-- 
     Mike Castle      address@hidden      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]