Date: Tue, 16 Jan 2001 04:10:05 -0800 (PST) From: "T.D.Bishop" <tdb1@ukc.ac.uk> To: freebsd-ports@FreeBSD.org Subject: Re: ports/24362: Update port: misc/dnetc Message-ID: <200101161210.f0GCA5I44420@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/24362; it has been noted by GNATS. From: "T.D.Bishop" <tdb1@ukc.ac.uk> To: clefevre@poboxes.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: ports/24362: Update port: misc/dnetc Date: Tue, 16 Jan 2001 12:01:47 +0000 (GMT) > > PORTNAME= dnetc > > -PORTVERSION= 2.8010.463 > > +PORTVERSION= 2.8012.465 > > CATEGORIES= misc > > -MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/v2.8010/ \ > > - http://http.distributed.net/pub/dcti/v2.8010/ > > +MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/v2.8012/ \ > > + http://http.distributed.net/pub/dcti/v2.8012/ > > this could be rewritten as : > > MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/ \ > http://http.distributed.net/pub/dcti/ > MASTER_SITE_SUBDIR= ${PORTVERSION:S/^/v/:R} This doesn't actually work, at least when I tried changing the Makefile to the above. I can see (and have tested seperately) that the following regular expression will turn "2.8012.465" into "v2.8012". s/^([0-9]*\.[0-9]*)\..*/v\1/ But trying to put this into the Makefile didn't work. I'm not entirely sure about the way in which Makefiles implement regular expressions. Feedback appreciated :) Tim. 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?200101161210.f0GCA5I44420>