Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 2010 19:24:38 -0500
From:      Sahil Tandon <sahil@FreeBSD.org>
To:        Chris Rees <utisoft@gmail.com>
Cc:        dinoex@freebsd.org, ports@freebsd.org, Rick <rick@lgarchitecture.com>
Subject:   Re: FreeBSD Port: ngircd-0.15
Message-ID:  <20101209002438.GB35076@magic.hamla.org>
In-Reply-To: <AANLkTimRrHHPJMn-sS6P4rrJFPos8r5h-_cLKZ65teP2@mail.gmail.com>
References:  <4CFEA151.8010708@lgarchitecture.com> <AANLkTimRrHHPJMn-sS6P4rrJFPos8r5h-_cLKZ65teP2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2010-12-08 at 14:39:42 +0000, Chris Rees wrote:

> On 7 December 2010 21:04, Rick <rick@lgarchitecture.com> wrote:
> > Hello,
> >
> > Here's an update for the irc/ngircd port from v0.15 to the latest stable
> > v0.17.
> >
> > Thanks,
> > Rick
> >
> 
> I would perhaps include:
> 
> -DISTNAME=	${PORTNAME}-17
> +DISTVERSION=	${PORTVERSION:C/0.//1}
> 
> negating the need to fiddle with DISTNAME after each upgrade.

This works and I see it has already been committed, but it seems
overkill to use an extended regular expressions in this situation.  A
simple string replacement (using the 'S' instead of 'C' modifier) would
suffice:

DISTVERSION=	${PORTVERSION:S/0.//}

-- 
Sahil Tandon <sahil@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101209002438.GB35076>