diff options
author | rillig <rillig@pkgsrc.org> | 2006-01-09 03:22:45 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-01-09 03:22:45 +0000 |
commit | d86d78773b02d23e3978aa1068816c90e7102d89 (patch) | |
tree | 1ebf39777a4a117543a4cb5975a147274b83feb0 /pkgtools/pkglint | |
parent | 9cb99dea5126832036e1fda8c0980f479166dc54 (diff) | |
download | pkgsrc-d86d78773b02d23e3978aa1068816c90e7102d89.tar.gz |
- Only check make variables for deprecation and $(...) instead of ${...}.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
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})."); |