pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/lintpkgsrc/files
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.
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 <abs%netbsd.org@localhost>.
#
@@ -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");
}
Home |
Main Index |
Thread Index |
Old Index