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: Todd Denniston
Subject: Re: Help and info on line endings
Date: Wed, 28 Jan 2004 13:53:12 -0500

Frederic Brehm wrote:
> 
> 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.
<SNIP> 
> 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.

If and Only If there are no "-kb"'s, then there is one other easy option with
the zip included with most Linux Distro's these days:

"-l   convert LF to CR LF (-ll CR LF to LF)"
use `xzip -l [other options]` to create the zips for the windows people and
`-ll` to receive zips from them.

If you have binaries you could build a script that does the `-l zipfile.zip
TextFileList` on known text files and then `-u zipfile.zip BinaryFileList` (I
think) to add the binaries to the zip file.

<SNIP>
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

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