summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2008-01-04 01:43:56 +0000
committerrillig <rillig>2008-01-04 01:43:56 +0000
commit2d9d35f6905289de648502681c40891462e684b9 (patch)
tree2d55ac011d5156a65da60f5dc6ea2bca9338947d
parentc9d4928a811c0c699ba022334ba1fa287fc16981 (diff)
downloadpkgsrc-2d9d35f6905289de648502681c40891462e684b9.tar.gz
Prepared pkglint for the upcoming cleanup of the .include directives in
mk/*.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 0e54b9ef91d..86059b77929 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.745 2008/01/03 16:16:22 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.746 2008/01/04 01:43:56 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2327,7 +2327,7 @@ sub load_tool_names() {
foreach my $line (@{$lines}) {
if ($line->text =~ regex_mk_include) {
my ($includefile) = ($1);
- if ($includefile =~ qr"^\$\{PKGSRCDIR\}/mk/tools/(.*)$") {
+ if ($includefile =~ qr"^(?:\$\{PKGSRCDIR\}/mk/tools/)?([^/]+)$") {
push(@tool_files, $1);
}
}