diff options
author | rillig <rillig@pkgsrc.org> | 2006-05-22 10:22:36 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-05-22 10:22:36 +0000 |
commit | c36eec6881461f139049c989142e310b7c6e694c (patch) | |
tree | 67dc0cef522bea7147fa7b0468935c064a6da977 /pkgtools/pkglint | |
parent | 0ec6199506849b138c28accc09adf3702b7ea87f (diff) | |
download | pkgsrc-c36eec6881461f139049c989142e310b7c6e694c.tar.gz |
- When building the list of used variables, scan Makefile.* in addition
to *.mk.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 7f4a361e2da..b0c5d8101e0 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.587 2006/05/22 07:41:03 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.588 2006/05/22 10:22:36 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -5718,7 +5718,7 @@ sub checkdir_package() { # Determine the used variables before checking any of the # Makefile fragments. foreach my $fname (@files) { - if ($fname =~ qr"\.mk$" + if ($fname =~ qr"^((?:.*/)?Makefile\..*|.*\.mk)$" && (defined(my $lines = load_lines($fname, true)))) { determine_used_variables($lines); } |