diff options
author | tv <tv@pkgsrc.org> | 1999-05-23 20:32:00 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1999-05-23 20:32:00 +0000 |
commit | c1dc1dbc3aaab89df14135ef64423dad8cba9a3d (patch) | |
tree | d31eb53745c4348a982f91672e3c820aaaa53ce5 /pkgtools/pkglint | |
parent | e030bc21d862c525fe3f37263301aca779ddd378 (diff) | |
download | pkgsrc-c1dc1dbc3aaab89df14135ef64423dad8cba9a3d.tar.gz |
Allow PKGNAME to be derived from DISTNAME (substitute as necessary).
Diffstat (limited to 'pkgtools/pkglint')
-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; |