pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint Ignore use of words which when used i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/36e40c079751
branches:  trunk
changeset: 482901:36e40c079751
user:      he <he%pkgsrc.org@localhost>
date:      Thu Nov 04 21:17:40 2004 +0000

description:
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:

 pkgtools/pkglint/Makefile         |  4 ++--
 pkgtools/pkglint/files/pkglint.pl |  5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 06d4dfe17b52 -r 36e40c079751 pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Thu Nov 04 20:57:06 2004 +0000
+++ b/pkgtools/pkglint/Makefile Thu Nov 04 21:17:40 2004 +0000
@@ -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 -r 06d4dfe17b52 -r 36e40c079751 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Nov 04 20:57:06 2004 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Nov 04 21:17:40 2004 +0000
@@ -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@localhost>,
@@ -1334,6 +1334,9 @@
        $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;]/) {



Home | Main Index | Thread Index | Old Index