From 01461882e8b2535fdec8530b9a31c27edde6f0f1 Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 2 Dec 2005 08:44:23 +0000 Subject: [PATCH] Allow direct use of tool names if the tool name is preceded by "${...}/". --- pkgtools/pkglint/files/pkglint.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 100806ede1b7..ff8ce538c81d 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.409 2005/12/02 08:26:52 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.410 2005/12/02 08:44:23 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -2314,7 +2314,7 @@ sub checklines_direct_tools($) { USE_TOOLS); my @valid_shellcmds = ( qr"for file in", - qr"\./${regex_tools}\b", + qr"[.}]/${regex_tools}\b", qr"(?:\./Build|\$\{(?:BJAM_CMD|JAM_COMMAND)\})\s+(?:install|test)", qr"\$\{(?:GMAKE|MAKE_PROGRAM)\}\s+(?:install)", qr"\"[^\"]*${regex_tools}[^\"]*\"",