From 2289353729bbe43fc50559f463774769cbcc0e76 Mon Sep 17 00:00:00 2001 From: hubertf Date: Tue, 7 Dec 1999 21:33:56 +0000 Subject: Bump to V1.81, adding code to check for existance of PLIST (unless PLIST_SRC or NO_PKG_REGISTER are set) Fixes PR 8953 by Thomas Klausner --- pkgtools/pkglint/Makefile | 4 ++-- pkgtools/pkglint/files/pkglint.pl | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'pkgtools/pkglint') diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 02dd0d20890..2c178c15777 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.21 1999/12/06 01:14:34 hubertf Exp $ +# $NetBSD: Makefile,v 1.22 1999/12/07 21:33:56 hubertf Exp $ # -DISTNAME= pkglint-1.80 +DISTNAME= pkglint-1.81 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index c2bb1f505cb..91e868e0967 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -12,7 +12,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.16 1999/11/26 03:30:39 hubertf Exp $ +# $NetBSD: pkglint.pl,v 1.17 1999/12/07 21:33:57 hubertf Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer and @@ -115,6 +115,8 @@ $sharedocused = 0; %plistmangz = (); %plistman = (); %manlangs = (); +$seen_PLIST_SRC = 0; +$seen_NO_PKG_REGISTER = 0; %predefined = (); foreach $i (split("\n", <) || -d "$portdir/work*") { &perror("WARN: be sure to cleanup $portdir/work* ". @@ -650,6 +658,14 @@ sub checkmakefile { "installation of files into $localbase/share/doc.") if $osname ne "NetBSD"; # how do you get this out of PLIST? } + print "OK: checking for PLIST_SRC.\n" if ($verbose); + if ($whole =~ /\nPLIST_SRC/) { + $seen_PLIST_SRC=1; + } + print "OK: checking for NO_PKG_REGISTER.\n" if ($verbose); + if ($whole =~ /\nNO_PKG_REGISTER/) { + $seen_NO_PKG_REGISTER=1; + } # # whole file: direct use of command names -- cgit v1.2.3