summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorwiz <wiz>2001-12-20 03:31:51 +0000
committerwiz <wiz>2001-12-20 03:31:51 +0000
commitdaedf6f2b3972b0be276056d395cf8e757db74de (patch)
tree2846fe08140d18c893416f877e5e09726c63f557 /pkgtools/pkglint
parente554c39542d6f59515b8faeab495c54d91dbd0ba (diff)
downloadpkgsrc-daedf6f2b3972b0be276056d395cf8e757db74de.tar.gz
Making lintpkgsrc more usable, part 2.
Reduces warnings from 'lintpkgsrc -d' from ~700 lines to ~100. [It won't get much better than this...]
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/Makefile4
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl6
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 09c9325270f..d9f65548580 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.120 2001/12/15 20:25:39 agc Exp $
+# $NetBSD: Makefile,v 1.121 2001/12/20 03:31:51 wiz Exp $
#
-DISTNAME= pkglint-3.16
+DISTNAME= pkglint-3.17
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index b79351f5286..ee88e47969f 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -1,6 +1,6 @@
#!@PREFIX@/bin/perl
-# $NetBSD: lintpkgsrc.pl,v 1.60 2001/12/11 03:47:20 wiz Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.61 2001/12/20 03:31:52 wiz Exp $
# Written by David Brownlee <abs@netbsd.org>.
#
@@ -797,7 +797,7 @@ sub parse_makefile_vars
next;
}
- if (/^ *([\w\.]+)\s*([+?]?)=\s*(.*)/)
+ if (/^ *([-\w\.]+)\s*([+?]?)=\s*(.*)/)
{
$key = $1;
$plus = $2;
@@ -876,7 +876,7 @@ sub parse_expand_vars
{
my($line, $vars) = @_;
- while ( $line =~ /\$\{([\w.]+)\}/ )
+ while ( $line =~ /\$\{([-\w.]+)\}/ )
{
if (defined(${$vars}{$1}))
{ $line = $`.${$vars}{$1}.$'; }