Date: Tue, 29 Aug 2000 15:18:00 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Will Andrews <andrews@technologist.com>, Maxim Sobolev <sobomax@FreeBSD.org>, ports@FreeBSD.org Subject: Re: cvs commit: ports/mail/balsa Makefile ports/mail/balsa/files md5 ports/mail/balsa/patches patch-aq patch-aj patch-ak patch-al patch-ar ports/mail/balsa/pkg PLIST Message-ID: <20000829151759.A80449@mithrandr.moria.org> In-Reply-To: <20000829075648.T73638@radon.gryphonsoft.com>; from andrews@technologist.com on Tue, Aug 29, 2000 at 07:56:48AM -0500 References: <200008291007.DAA34217@freefall.freebsd.org> <20000829075648.T73638@radon.gryphonsoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 2000-08-29 (07:56), Will Andrews wrote: > On Tue, Aug 29, 2000 at 03:07:03AM -0700, Maxim Sobolev wrote: > > Removed files: > > mail/balsa/patches patch-aj patch-ak patch-al patch-ar > > Log: > > - replace couple of patches with perl regex. > > I think this practice should be adopted a little more widely, for > two big reasons: 1) Fewer inodes used ; 2) More maintainable. It > should be in the Porter's Handbook, IMHO. [ cvs-all -> ports ] Sick examples c/o nbm: from biology/emboss (replacing four patches): DOC_DIRS= doc/manuals doc/tutorials doc/programs/text doc/programs/html post-patch: .for DIR in ${DOC_DIRS} @perl -pi.orig -e \ "s#share/\\$$\(PACKAGE\)/doc#share/doc/\\$$\(PACKAGE\)#" \ ${WRKSRC}/${DIR}/Makefile.in .endfor from courier-imap (common foo.conf to foo.conf.dist thing): @perl -i -pe 's@(\$$.sysconfdir./\$$\$$p)@\1.dist@' \ ${WRKSRC}/imap/Makefile.in Can anyone suggest how to achieve this with a sed one-liner? (I use perl because it does in-place replacement very easily) Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000829151759.A80449>