From owner-freebsd-ports Tue Aug 29 6:18:19 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id 58CE737B423; Tue, 29 Aug 2000 06:18:07 -0700 (PDT) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 13TlH6-000Kwa-00; Tue, 29 Aug 2000 15:18:00 +0200 Date: Tue, 29 Aug 2000 15:18:00 +0200 From: Neil Blakey-Milner To: Will Andrews , Maxim Sobolev , 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> References: <200008291007.DAA34217@freefall.freebsd.org> <20000829075648.T73638@radon.gryphonsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000829075648.T73638@radon.gryphonsoft.com>; from andrews@technologist.com on Tue, Aug 29, 2000 at 07:56:48AM -0500 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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