summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-07 16:19:01 +0000
committerrillig <rillig@pkgsrc.org>2007-11-07 16:19:01 +0000
commite50a5ca8917d535f3002cdd26920693cd065b4ee (patch)
tree9639b7ee597079ea3531d6609b37f17c0e64521a /pkgtools
parent7c6314fd87fd6351774d9a47a9300e8bac6be179 (diff)
downloadpkgsrc-e50a5ca8917d535f3002cdd26920693cd065b4ee.tar.gz
When checking a single *.mk file, determine the used variables. This
avoids many false positive warnings when checking files in the mk/ directory.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 9e4f7c18cdb..2992ad4dcc7 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.730 2007/11/07 12:11:18 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.731 2007/11/07 16:19:01 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -5962,6 +5962,8 @@ sub checklines_mk($) {
$mkctx_tools = {%{get_predefined_tool_names()}};
$mkctx_varuse = {};
+ determine_used_variables($lines);
+
foreach my $prefix (qw(pre do post)) {
foreach my $action (qw(fetch extract patch tools wrapper configure build test install package clean)) {
$allowed_targets->{"${prefix}-${action}"} = true;