diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-31 14:00:17 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-31 14:00:17 +0000 |
commit | ade4f6f31a8580c12ea8321f80c99bee3a9f8279 (patch) | |
tree | 8db02efac18c10e5200f0764d8a173e881993985 /pkgtools/pkglint/files | |
parent | 300f843ec7037ff4aeb5dab17d6839a5db8f4ab0 (diff) | |
download | pkgsrc-ade4f6f31a8580c12ea8321f80c99bee3a9f8279.tar.gz |
Don't require white-space after ${RUN}, since it wasn't required for
${_PKG_SILENT}${_PKG_DEBUG} either.
Diffstat (limited to 'pkgtools/pkglint/files')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 61d37250e6d..764ae9cd275 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.761 2008/01/31 13:20:56 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.762 2008/01/31 14:00:17 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -4605,8 +4605,10 @@ sub checkline_mk_shelltext($$) { ${WARNING_CAT} ${WARNING_MSG} )); - if ($rest =~ s/^\s*([-@]*)(?:\$\{_PKG_SILENT\}\$\{_PKG_DEBUG\})?//) { - my ($hidden) = ($1); + $set_e_mode = false; + + if ($rest =~ s/^\s*([-@]*)(\$\{_PKG_SILENT\}\$\{_PKG_DEBUG\}|\${RUN}|)//) { + my ($hidden, $macro) = ($1, $2); if ($hidden !~ qr"\@") { # Nothing is hidden at all. @@ -4633,10 +4635,13 @@ sub checkline_mk_shelltext($$) { "all errors you never thought of), append \"|| \${TRUE}\" to the", "command."); } + + if ($macro eq "\${RUN}") { + $set_e_mode = true; + } } $state = SCST_START; - $set_e_mode = false; while ($rest =~ s/^$regex_shellword//) { my ($shellword) = ($1); |