Subject: Re: Use of ${PKGNAME} can lead to confusion
To: Hubert Feyrer <feyrer@cs.stevens.edu>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 10/09/2005 20:30:24
Hubert Feyrer wrote:
> On Sun, 9 Oct 2005, Roland Illig wrote:
> 
>>> Um, why yet another variable, when you can simply remove the 
>>> "nb${PKGREVISION}" from the variable that shouldn't have it.
>>
>>
>> Next try: Did you mean replacing ${PKGNAME} with ${PKGNAME_NOREV} in 
>> the appropriate places, like in DIST_SUBDIR?
> 
> 
> No!
> Use ${PKGNAME:C/nb${PKGREVISON}//} or so in the right place,
> i.e. probably where DISTDIR or so is define.

And why shouldn't I use ${PKGNAME_NOREV} instead of the (longer, harder 
to read, more error-prone) ${PKGNAME:C/nb${PKGREVISION}//}?

error-prone, because your try would strip nb${PKGREVISION} even if 
${PKGNAME} does not end in it.

Roland