diff options
author | he <he@pkgsrc.org> | 2004-11-04 21:17:40 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2004-11-04 21:17:40 +0000 |
commit | 561241471a6780e3a2b3e69bedca35ccd71d5f76 (patch) | |
tree | da9645c5d445c14f81fcc5cda0fdab42dbdcec2d /pkgtools/pkglint | |
parent | 8a171388b2011c109b482c397b58395fb3ee9752 (diff) | |
download | pkgsrc-561241471a6780e3a2b3e69bedca35ccd71d5f76.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')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 7d4a8ae913b..42eb275aeb2 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.209 2004/11/04 12:37:02 wiz Exp $ +# $NetBSD: Makefile,v 1.210 2004/11/04 21:17:40 he Exp $ # -DISTNAME= pkglint-3.95 +DISTNAME= pkglint-3.96 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty 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;]/) { |