diff options
author | rillig <rillig@pkgsrc.org> | 2005-05-24 12:38:41 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-05-24 12:38:41 +0000 |
commit | d1f3a37bf80a60115f5b4307332a0832db9ac82f (patch) | |
tree | 67603f5a2a9cccdc25b33e021a096b548b429dad /pkgtools/pkglint | |
parent | 905d3ad9152fc67c927e4d322e1cc8117806c9df (diff) | |
download | pkgsrc-d1f3a37bf80a60115f5b4307332a0832db9ac82f.tar.gz |
Allow multiple USE_TOOLS+= lines.
Diffstat (limited to 'pkgtools/pkglint')
-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;]/) { |