At 12:55 +0200 5/14/02, juhas wrote:
>Hi,
>is there any simple way how to keep unix ends of lines (eolns) in
>the repository?
...
>Is it possible to set/write a trigger which would convert eolns
>in text files during cvs checkin?
>If not, is there another chance?

Use CVSROOT/commitinfo to run a script that greps for a CR-LF in the 
file being checked in. If it finds it, write an explanatory message 
to stderr and exit with status not equal to 0. That will make the 
commit fail.

Don't try to automatically fix the file during a commit.

You might want to limit the checks to files with specific extensions 
(.c, .java, etc.), or use a mechanism similar to .cvsignore to 
exclude certain files from this kind of check. You may not need this 
if everything in your repository is plain text.

Provide a simple utility for your developers so they can fix the problem.

Fred
-- 
Fred Brehm, Sarnoff Corporation, [EMAIL PROTECTED]
http://www.sarnoff.com/digital_video_informatics/vision_technology/index.asp

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to