summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
authorrillig <rillig>2006-06-18 01:01:40 +0000
committerrillig <rillig>2006-06-18 01:01:40 +0000
commita95da2de6735f2a383c72816639fdf58f3f623ce (patch)
tree5a698068c357b7bcfe5a664af78d6ee2a2521a07 /pkgtools/pkglint/files/pkglint.pl
parent7c037230ff17c7003732d2ada386ffcf73a45e41 (diff)
downloadpkgsrc-a95da2de6735f2a383c72816639fdf58f3f623ce.tar.gz
Don't treat comments as paragraph separators for the SUBST check. See
graphics/xfig for an example where it makes a difference.
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 071b78a0db9..40c0e219aee 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.629 2006/06/18 00:51:34 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.630 2006/06/18 01:01:40 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -4837,9 +4837,12 @@ sub checklines_mk($) {
checkline_trailing_whitespace($line);
checkline_spellcheck($line);
- if ($text =~ qr"^\s*$" || $text =~ qr"^#") {
+ if ($text =~ qr"^\s*$") {
$substcontext->check_end($line);
+ } elsif ($text =~ qr"^#") {
+ # No further checks.
+
} elsif ($text =~ regex_varassign) {
my ($varname, $op, $value, $comment) = ($1, $2, $3, $4);
my $space1 = substr($text, $+[1], $-[2] - $+[1]);