pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint 3.98: Teach pkglint about BUILD_TARGE...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5654909ad669
branches: trunk
changeset: 484998:5654909ad669
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Dec 02 16:40:10 2004 +0000
description:
3.98: Teach pkglint about BUILD_TARGET, and let it warn about ALL_TARGET.
diffstat:
pkgtools/pkglint/Makefile | 4 ++--
pkgtools/pkglint/files/pkglint.pl | 10 +++++++---
2 files changed, 9 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r fb404287b5a3 -r 5654909ad669 pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Thu Dec 02 15:04:16 2004 +0000
+++ b/pkgtools/pkglint/Makefile Thu Dec 02 16:40:10 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.211 2004/11/09 17:14:43 seb Exp $
+# $NetBSD: Makefile,v 1.212 2004/12/02 16:40:10 wiz Exp $
#
-DISTNAME= pkglint-3.97
+DISTNAME= pkglint-3.98
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff -r fb404287b5a3 -r 5654909ad669 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Dec 02 15:04:16 2004 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Dec 02 16:40:10 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.124 2004/11/09 17:14:43 seb Exp $
+# $NetBSD: pkglint.pl,v 1.125 2004/12/02 16:40:10 wiz Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf%netbsd.org@localhost>,
@@ -1212,6 +1212,10 @@
log_error(NO_FILE, NO_LINE_NUMBER, "USE_BUILDLINK2 is deprecated, ".
"use USE_BUILDLINK3 instead.");
}
+ if ($whole =~ /\nALL_TARGET/) {
+ log_error(NO_FILE, NO_LINE_NUMBER, "ALL_TARGET is deprecated, ".
+ "use BUILD_TARGET instead.");
+ }
if ($whole =~ /\nIS_INTERACTIVE/) {
log_error(NO_FILE, NO_LINE_NUMBER, "IS_INTERACTIVE is deprecated, ".
"use INTERACTIVE_STAGE instead.");
@@ -1334,9 +1338,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
+ # ...nor settings of TEST_TARGET & BUILD_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/;
+ $j =~ s/\nBUILD_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nBUILD_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