Received: by mail.netbsd.org (Postfix, from userid 605) id D302E84E7B; Tue, 9 Aug 2022 21:01:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 19BC184D72 for ; Tue, 9 Aug 2022 21:01:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id mT4Vz1dUWA3j for ; Tue, 9 Aug 2022 21:01:50 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id DE18C84CF7 for ; Tue, 9 Aug 2022 21:01:49 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D79C1FB1A; Tue, 9 Aug 2022 21:01:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_166007890994690" MIME-Version: 1.0 Date: Tue, 9 Aug 2022 21:01:49 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/pkgtools/lintpkgsrc/files To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20220809210149.D79C1FB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_166007890994690 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Tue Aug 9 21:01:49 UTC 2022 Modified Files: pkgsrc/pkgtools/lintpkgsrc/files: lintpkgsrc.pl Log Message: lintpkgsrc: recognize comments and shell commands in makefile lines To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_166007890994690 Content-Disposition: inline Content-Length: 866 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl diff -u pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.66 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.67 --- pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.66 Tue Aug 9 20:51:45 2022 +++ pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl Tue Aug 9 21:01:49 2022 @@ -1,6 +1,6 @@ #!@PERL5@ -# $NetBSD: lintpkgsrc.pl,v 1.66 2022/08/09 20:51:45 rillig Exp $ +# $NetBSD: lintpkgsrc.pl,v 1.67 2022/08/09 21:01:49 rillig Exp $ # Written by David Brownlee . # @@ -661,6 +661,9 @@ sub parse_makefile_vars($$) { } elsif (m#^[ ]* ([-\w\.]+) \s* ([:+?]?=) \s* (.*)#x) { parse_makefile_line_var($1, $2, $3, \%vars); + } elsif ($_ eq '' || m#^\s*\## || m#^\t#) { + # Skip comment lines and shell commands. + } else { debug("$file: unknown line '$_'\n"); } --_----------=_166007890994690--