diff options
author | he <he> | 2004-11-04 21:17:40 +0000 |
---|---|---|
committer | he <he> | 2004-11-04 21:17:40 +0000 |
commit | 3d0d93cc8ddc7e15e309367180023a350d48545e (patch) | |
tree | da9645c5d445c14f81fcc5cda0fdab42dbdcec2d /pkgtools/pkglint/files | |
parent | 87695564edc8459cac66da5edbf6e7e753bd39f4 (diff) | |
download | pkgsrc-3d0d93cc8ddc7e15e309367180023a350d48545e.tar.gz |
Ignore use of words which when used in make shell commands should
be used in variable-expansion version, e.g. `test' vs `${TEST}' in
settings of TEST_TARGET and ALL_TARGET. Gets rid of warning about
"test" in TEST_TARGET setting from lang/perl5/module.mk.
Bump package version.
Reviewed by wiz.
Diffstat (limited to 'pkgtools/pkglint/files')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index fdc1e7853e5..c87e952892e 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.122 2004/10/28 13:03:10 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.123 2004/11/04 21:17:40 he Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -1334,6 +1334,9 @@ EOF $j =~ s/\n#[\n]*/\n#/; # ...nor COMMENTs $j =~ s/\nCOMMENT[\t ]*=[\t ]*[^\n]*\n/\nCOMMENT=#replaced\n/; + # ...nor settings of TEST_TARGET & ALL_TARGET + $j =~ s/\nTEST_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nTEST_TARGET=#replaced\n/; + $j =~ s/\nALL_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nALL_TARGET=#replaced\n/; if ($opt_warn_directcmd) { foreach my $i (keys %cmdnames) { if ($j =~ /[ \t\/@]$i[ \t\n;]/) { |