diff options
author | rillig <rillig> | 2007-11-07 16:19:01 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-11-07 16:19:01 +0000 |
commit | bc9679afa0b71a996b5b738fe39a35a14729767e (patch) | |
tree | 9639b7ee597079ea3531d6609b37f17c0e64521a /pkgtools | |
parent | c883d3e91d95874374937f482f6e21f66024ad06 (diff) | |
download | pkgsrc-bc9679afa0b71a996b5b738fe39a35a14729767e.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.pl | 4 |
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; |