summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2006-01-24 20:07:54 +0000
committerrillig <rillig>2006-01-24 20:07:54 +0000
commitfb7e7599a3a207ba4c504645e372e1f8bea413df (patch)
tree60dc0f422fe5506b0d6f2b30d389b4958375f146 /pkgtools
parentf6142db64573cc75bac8947d623db8e10f67b1b7 (diff)
downloadpkgsrc-fb7e7599a3a207ba4c504645e372e1f8bea413df.tar.gz
- Accept "\"...\"" as valid CPP macro, as some old configure scripts need
it that way. In --debug mode, a warning is printed.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index e6dd8f18a25..01052e4e8db 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.481 2006/01/23 01:51:46 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.482 2006/01/24 20:07:54 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2464,6 +2464,9 @@ sub checkline_mk_vartype_basic($$$$$$) {
if ($macval =~ qr"^\\\"(?:\$\{[A-Z0-9_]+:Q\}|[^\$])*\\\"") {
# Everything's fine.
+ } elsif ($macval =~ qr"^\"\\\"(?:\$\{[A-Z0-9_]+\}|[^\$])*\\\"\"") {
+ $opt_debug and $line->log_warning("Not the best style for CPP macros, but accepted.");
+
} elsif ($macval =~ regex_unresolved && $macval =~ qr"[\"']") {
$line->log_warning("Unusual macro value ${macval}.");
$line->explain(