summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2012-08-03 09:07:21 +0000
committerasau <asau@pkgsrc.org>2012-08-03 09:07:21 +0000
commit82304cfd313197daf239ca1ed0658a6969217de8 (patch)
tree0d0f39494d0d3646204f46f0c38c2838dfa14089 /pkgtools
parent8742a846ce8e62e93c7659b17759496c2422404f (diff)
downloadpkgsrc-82304cfd313197daf239ca1ed0658a6969217de8.tar.gz
Recognize make syntax (make variable) in one more place.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 07489e04c4b..f1ea35f0480 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.413 2012/08/01 22:19:00 asau Exp $
+# $NetBSD: Makefile,v 1.414 2012/08/03 09:07:21 asau Exp $
#
# Note: if you update the version number, please have a look at the
# changes between the CVS tag "pkglint_current" and HEAD.
# After updating, please re-set the CVS tag to HEAD.
-DISTNAME= pkglint-4.121
+DISTNAME= pkglint-4.122
CATEGORIES= pkgtools
MASTER_SITES= # none
DISTFILES= # none
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index bbab9707c3e..2065595c8b1 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.844 2012/08/01 22:19:01 asau Exp $
+# $NetBSD: pkglint.pl,v 1.845 2012/08/03 09:07:21 asau Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2753,7 +2753,7 @@ sub determine_used_variables($) {
foreach my $line (@{$lines}) {
$rest = $line->text;
- while ($rest =~ s/(?:\$\{|defined\(|empty\()([0-9+.A-Z_a-z]+)[:})]//) {
+ while ($rest =~ s/(?:\$\{|\$\(|defined\(|empty\()([0-9+.A-Z_a-z]+)[:})]//) {
my ($varname) = ($1);
use_var($line, $varname);
$opt_debug_unused and $line->log_debug("Variable ${varname} is used.");