Leo Simons wrote: > Leo Simons wrote: >> I know Peter Royal corrects line endings on files every so often, >> but I don't know what it is that corrupts them. > > on closer inspection it seems there's a few version combos of ssh+cvs > that result in this problem, as do some editors. I've spent half an > hour on a little perl script to fix the repo, but it doesn't actually > work and I'm real bored with it atm. In the meantime, he're an ant > snippet which fixes the files locally and allows you to send in your > patches. > > <project default="main"> > <target name="fixCRLF"> > <fixcrlf > srcdir="." > includes="**/*.java" > eol="lf" > tab="remove" > tablength="4" > eof="remove"/> > </target> > </project> > > cheers,
Hi Leo, using a bash it is quite easier ... find . -name "*.java" | xargs d2u and if you're in Windows using Cygwin on a textmounted drive (i.e. text mode crlf translation) just reverse it again find . -name "*.java" | xargs u2d d2u will produce valid lf-ended files on any case :) Regards, J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
