Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 09:36:39 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Ed Schouten <ed@fxq.nl>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Patching files with DOS returns
Message-ID:  <790a9fff0508270736256a26db@mail.gmail.com>
In-Reply-To: <20050827140041.GJ749@hoeg.nl>
References:  <200508122130.j7CLUNRQ018058@www.freebsd.org> <200508122140.j7CLe7nw054439@freefall.freebsd.org> <20050827140041.GJ749@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/27/05, Ed Schouten <ed@fxq.nl> wrote:
> Hello,
>=20
> Some days ago I submitted a port for the Quake 3: Arena source, released
> by id Software (see PR 84853).
>=20
> The patches included with the port (patch-freebsd and patch-make) patch
> some files that have DOS returns (\r\n), so the patches have ^M's at the
> end of each line.
>=20
> My question is: will those patches be malformed if they got checked into
> CVS? Is there some kind of clean way to 'dosunix' the entire WRKSRC
> before it gets patched?
>=20
Yes, there is a way to use PERL to convert the files from DOS line
formats to UNIX line format. I have a couple of perl scripts that do
this for me on another system.  That's not accessible to me at the
moment.

If the source is distributed in a zip file you can use unzip to
convert the line formats for you, see the man page for unzip.

Scot
--=20
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0508270736256a26db>