svn commit: r308260 - head/net-mgmt/p5-Net-IP

Alexey Dokuchaev danfe at FreeBSD.org
Wed Dec 5 01:28:42 UTC 2012


On Tue, Dec 04, 2012 at 06:54:18PM +0000, Chris Rees wrote:
> On 4 Dec 2012 18:15, "Eitan Adler" <eadler at freebsd.org> 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


More information about the svn-ports-all mailing list