Date: Fri, 28 Oct 2005 11:54:22 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: =?utf-8?B?S8O2dmVzZMOhbiBHw6Fib3I=?= <gabor.kovesdan@t-hosting.hu> Cc: freebsd-questions@freebsd.org Subject: Re: Sed howto Message-ID: <20051028165422.GA5513@dan.emsphone.com> In-Reply-To: <4362409D.400@t-hosting.hu> References: <4362409D.400@t-hosting.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 28), Kvesdn Gbor said: > I'm looking for a good sed howto that can be useful for contributing > to ports collection. Replacing text is I'm especially interested in. > Besides, could somebody explain me, when we use USE_REINPLACE= YES > and ${REINPLACE_CMD}, and when we use just ${SED}? Our sed can only do inplace edits in 4.6 and newer, so on older systems the textproc/sed_inplace port gets installed and REINPLACE_CMD is set to that binary. Use ${REINPLACE_CMD} when you modify a file inplace, use ${SED} when you convert a "file.in" to a "file". -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051028165422.GA5513>