diff options
author | rillig <rillig> | 2005-05-24 12:38:41 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-05-24 12:38:41 +0000 |
commit | 1338f577c448d3e1084680a77b4aa221884dc255 (patch) | |
tree | 67603f5a2a9cccdc25b33e021a096b548b429dad /pkgtools/pkglint/files | |
parent | da85697b5ddbd43a7443115a10db11a363f62490 (diff) | |
download | pkgsrc-1338f577c448d3e1084680a77b4aa221884dc255.tar.gz |
Allow multiple USE_TOOLS+= lines.
Diffstat (limited to 'pkgtools/pkglint/files')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 4bd0629caac..11c1d40a241 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.172 2005/05/23 09:31:20 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.173 2005/05/24 12:38:41 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -1391,7 +1391,7 @@ sub checkfile_Makefile($) { # ...nor settings of TEST_TARGET & BUILD_TARGET $j =~ s/\nTEST_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nTEST_TARGET=#replaced\n/; $j =~ s/\nBUILD_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nBUILD_TARGET=#replaced\n/; - $j =~ s/\n(?:PKGSRC_)?USE_TOOLS[ \t]*\+=[ \t]*[^\n]*\n/\nUSE_TOOLS=#replaced\n/; + $j =~ s/\n(?:PKGSRC_)?USE_TOOLS[ \t]*\+?=[ \t]*[^\n]*\n/\nUSE_TOOLS=#replaced\n/g; if ($opt_warn_directcmd) { foreach my $i (keys %cmdnames) { if ($j =~ /[ \t\/@]$i[ \t\n;]/) { |