summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-09 03:22:45 +0000
committerrillig <rillig@pkgsrc.org>2006-01-09 03:22:45 +0000
commit9bb9aae4426c211cd4cddc63af87968b768778bd (patch)
tree1ebf39777a4a117543a4cb5975a147274b83feb0 /pkgtools
parent3a9a4959c282169f577812fbfcdae2a80dbd6a7d (diff)
downloadpkgsrc-9bb9aae4426c211cd4cddc63af87968b768778bd.tar.gz
- Only check make variables for deprecation and $(...) instead of ${...}.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index d55ab815207..ef456a0d7ae 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@ -w
-# $NetBSD: pkglint.pl,v 1.458 2006/01/09 02:47:56 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.459 2006/01/09 03:22:45 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -1682,7 +1682,7 @@ sub checkline_mk_text($$) {
}
$rest = $text;
- while ($rest =~ s/\$\{([-A-Z0-9a-z_]+)(?::[^\}]+)?\}//) {
+ while ($rest =~ s/(?:^|[^\$])\$\{([-A-Z0-9a-z_]+)(?::[^\}]+)?\}//) {
my ($varname) = ($1);
if (exists(get_deprecated_map()->{$varname})) {
@@ -1691,7 +1691,7 @@ sub checkline_mk_text($$) {
}
$rest = $text;
- while ($rest =~ s/\$\(([-A-Z0-9a-z_]+)(?::[^\}]+)?\)//) {
+ while ($rest =~ s/(?:^|[^\$])\$\(([-A-Z0-9a-z_]+)(?::[^\}]+)?\)//) {
my ($varname) = ($1);
$line->log_warning("Please use \${${varname}\} instead of \$(${varname}).");