diff options
author | wiz <wiz@pkgsrc.org> | 2001-12-11 03:47:20 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-12-11 03:47:20 +0000 |
commit | b938f73029ea07b8f52006e2fa0e6bb0f27e5845 (patch) | |
tree | 21d18b6494ef044df34ea2d619596b11498befcb /pkgtools | |
parent | 26dba202c4773a953ea5c9c77bf03b903e06b170 (diff) | |
download | pkgsrc-b938f73029ea07b8f52006e2fa0e6bb0f27e5845.tar.gz |
WIP: Make lintpkgsrc happy with buildlink.mk files. Not complete yet,
but "lintpkgsrc -d" output reduced from >7000 lines to ~700.
First part of diff fixes most ruby* complaints, second part the general
"Unknown package: 'UNDEFINED' version missing" message.
Diffstat (limited to 'pkgtools')
-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; |