diff options
author | wiz <wiz> | 2001-12-20 03:31:51 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-12-20 03:31:51 +0000 |
commit | 55c113e89562731bb8e32ba4b9c09df357df4ae0 (patch) | |
tree | 2846fe08140d18c893416f877e5e09726c63f557 /pkgtools | |
parent | 8a8de0cf27678e0e2a63caf34e214a4198306e28 (diff) | |
download | pkgsrc-55c113e89562731bb8e32ba4b9c09df357df4ae0.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')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkglint/files/lintpkgsrc.pl | 6 |
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}.$'; } |