info-cvs
[Top][All Lists]
Advanced

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

Re: Help and info on line endings


From: Frederic Brehm
Subject: Re: Help and info on line endings
Date: Wed, 28 Jan 2004 13:25:31 -0500

At 12:49 PM 1/28/2004, Scott Reed wrote:
Why don't you check them out on a Windows client?

The server which the users (who do not have CVS clients) access the files is running Linux. The files are automatically, periodically checked out and zipped up for download from the server.

Could you set up a windows box to run the same automatic script? Use cygwin (http://cygwin.com/) to give you the bash or whatever shell. Make sure you have the cvs.exe from WinCvs (http://www.wincvs.org/) in the path before the cygwin bin directory so you make sure you get the right kind of text files.

As an alternative, you can have your Linux script check the status of each file. If the "Sticky Options:" does not include "-kb", then do the unix2dos on it. On a checkin, run dos2unix on the same files. WARNING: I don't know if the test for -kb is sufficient.

A third option is to modify the CVS source to allow you to specify the kind of line ending to process. If you include the CR-only line ending option (Mac OS) then you can try to submit this as a patch. But be prepared for some very vocal opposition to adding this to CVS.

All of these require work. You get to choose.

Fred


_______________________________________________________________
Frederic W. Brehm, Sarnoff Corporation, http://www.sarnoff.com/





reply via email to

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