From owner-svn-ports-all@FreeBSD.ORG Wed Dec 5 01:28:42 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 214A96AA; Wed, 5 Dec 2012 01:28:42 +0000 (UTC) Date: Wed, 5 Dec 2012 01:28:42 +0000 From: Alexey Dokuchaev To: Chris Rees Subject: Re: svn commit: r308260 - head/net-mgmt/p5-Net-IP Message-ID: <20121205012842.GB45591@FreeBSD.org> References: <201212041815.qB4IFB55053423@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, Eitan Adler , ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2012 01:28:42 -0000 On Tue, Dec 04, 2012 at 06:54:18PM +0000, Chris Rees wrote: > On 4 Dec 2012 18:15, "Eitan Adler" wrote: > > post-patch: > > - @${CP} ${WRKSRC}/IP.pm ${WRKSRC}/IP.pm.presed > > - @${SED} -e "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm.presed > \ > > - ${WRKSRC}/IP.pm > > - @${CP} ${WRKSRC}/ipcount ${WRKSRC}/ipcount.presed > > - @${SED} -e "76s#count#count = 0#" ${WRKSRC}/ipcount.presed > \ > > - ${WRKSRC}/ipcount > > + ${REINPLACE_CMD} "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm > > + ${REINPLACE_CMD} "76s#count#count = 0#" ${WRKSRC}/ipcount > > These are horrible- why not patches? There *were* horrible; now they are pretty much clear and trivial. While it is largely the matter of taste, I also prefer to perform simple mechanical changes with sed(1) and use patches for some more complicated logic. ./danfe