Subject: Re: Please review: nbX => PKGREVISION
To: Frederick Bruckman <fredb@immanent.net>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 11/27/2001 12:54:38
On Mon, 26 Nov 2001, Frederick Bruckman wrote:
> Changing PKGNAME in place with ":=" looks sneaky. I guess you do that
> because "=" won't let you put the variable you're changing on the rhs.
Yes.
> Does that do the right thing in the places where ${PKGNAME} is
> referenced _before_ you change it (e.g., to compute ${PKGVERSION})?
That seems to work, yes:
DISTNAME= pkgrevision_1.0
PKGNAME= pkgrevision-1.0
PKGREVISION= 17
BAR= ${PKGNAME}
do-configure:
@echo BAR=${BAR}
...
This prints the right value on "do-configure".
BAR=pkgrevision-1.0nb17
> If
> not, the foolproof way would be to make another variable for the whole
> pkgname, and change most (all) of the instances of ${PKGNAME} to refer
> to the new variable.
That's exactly what I wanted to avoid.
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/