diff options
author | tv <tv> | 1999-05-23 20:32:00 +0000 |
---|---|---|
committer | tv <tv> | 1999-05-23 20:32:00 +0000 |
commit | 4ab9b8312210557898c9bae6b3d5c1c691d62015 (patch) | |
tree | d31eb53745c4348a982f91672e3c820aaaa53ce5 /pkgtools | |
parent | 97b6fca886a700721ae399098b138fd9d36d0423 (diff) | |
download | pkgsrc-4ab9b8312210557898c9bae6b3d5c1c691d62015.tar.gz |
Allow PKGNAME to be derived from DISTNAME (substitute as necessary).
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 9a46811f35c..45887b9be31 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.7 1999/03/10 08:24:16 agc Exp $ +# $NetBSD: pkglint.pl,v 1.8 1999/05/23 20:32:00 tv Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org> and @@ -778,6 +778,7 @@ EOF "you don't need to define PKGNAME."); } $i = ($pkgname eq '') ? $distname : $pkgname; + $i =~ s/\${DISTNAME[^}]*}/$distname/g; if ($i =~ /-([^-]+)$/) { $j = $`; $k = $1; |