diff options
-rwxr-xr-x | pkgtools/pkglint/files/lintpkgsrc.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl index d4ad978ed44..b79351f5286 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.59 2001/12/03 21:55:50 wiz Exp $ +# $NetBSD: lintpkgsrc.pl,v 1.60 2001/12/11 03:47:20 wiz Exp $ # Written by David Brownlee <abs@netbsd.org>. # @@ -715,7 +715,7 @@ sub parse_makefile_vars while( defined($_ = shift(@data)) ) { - s/#.*//; + s/\s*#.*//; # Continuation lines # @@ -797,7 +797,7 @@ sub parse_makefile_vars next; } - if (/^ *(\w+)\s*([+?]?)=\s*(.*)/) + if (/^ *([\w\.]+)\s*([+?]?)=\s*(.*)/) { $key = $1; $plus = $2; |