Try locating one of the following commands on your UNIX system:

flip
unix2dos
dos2unix

- Dave

>>> <[EMAIL PROTECTED]> 3/7/2006 03:36 PM >>>
I would like to convert any DOS files to unix format prior to commit.
It is annoying when someone commits from a windows machine with DOS
line endings, but I am in no position to enforce unix format checkins.

How can I modify the file to be commited?  Would this work:
#!/bin/sh
for file in $*
do
  tr -d '\15\32' < $file > $file.unix
  mv $file $file.DOS
  mv $file.unix $file
done

Thanks.
Matyas

_______________________________________________
Info-cvs mailing list
[email protected] 
http://lists.nongnu.org/mailman/listinfo/info-cvs



_______________________________________________
Info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs

Reply via email to