summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-05-22 10:22:36 +0000
committerrillig <rillig@pkgsrc.org>2006-05-22 10:22:36 +0000
commit8f44969435d2102ef7a2f60131105febd6a5a715 (patch)
tree67dc0cef522bea7147fa7b0468935c064a6da977 /pkgtools
parentb088293c8eace4245e5f6f9caf4b6dab5a3173a7 (diff)
downloadpkgsrc-8f44969435d2102ef7a2f60131105febd6a5a715.tar.gz
- When building the list of used variables, scan Makefile.* in addition
to *.mk.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
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);
}