pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - When building the list of use...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7fb3132a6518
branches: trunk
changeset: 513197:7fb3132a6518
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon May 22 10:22:36 2006 +0000
description:
- When building the list of used variables, scan Makefile.* in addition
to *.mk.
diffstat:
pkgtools/pkglint/files/pkglint.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r b14e7f21c70d -r 7fb3132a6518 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Mon May 22 10:01:02 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Mon May 22 10:22:36 2006 +0000
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.587 2006/05/22 07:41:03 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.588 2006/05/22 10:22:36 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -5718,7 +5718,7 @@
# Determine the used variables before checking any of the
# Makefile fragments.
foreach my $fname (@files) {
- if ($fname =~ qr"\.mk$"
+ if ($fname =~ qr"^((?:.*/)?Makefile\..*|.*\.mk)$"
&& (defined(my $lines = load_lines($fname, true)))) {
determine_used_variables($lines);
}
Home |
Main Index |
Thread Index |
Old Index