summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz>2003-04-22 08:26:57 +0000
committerwiz <wiz>2003-04-22 08:26:57 +0000
commitfe1c1a913df14230931a1b4127e070a30ec81e2e (patch)
tree3bdf2aa31542a5f0e67cd8547c20c102aa9e9bd8 /pkgtools
parent86b8f7a99eca966000e9267ad03bbb0d52ff8109 (diff)
downloadpkgsrc-fe1c1a913df14230931a1b4127e070a30ec81e2e.tar.gz
3.51: Yell if .included files do not exist.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl11
2 files changed, 10 insertions, 5 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 9358ee63dc1..072340f2056 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.156 2003/04/19 03:05:15 rh Exp $
+# $NetBSD: Makefile,v 1.157 2003/04/22 08:26:57 wiz Exp $
#
-DISTNAME= pkglint-3.50
+DISTNAME= pkglint-3.51
WRKSRC= ${WRKDIR}
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index a856b36811d..8367c5c3adf 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.85 2003/04/19 03:05:16 rh Exp $
+# $NetBSD: pkglint.pl,v 1.86 2003/04/22 08:26:57 wiz Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -659,8 +659,13 @@ sub readmakefile {
$contents .= $_;
} else {
$dirname = dirname($file);
- print("OK: including $dirname/$includefile\n");
- $contents .= readmakefile("$dirname/$includefile");
+ if (not -e <$dirname/$includefile> ) {
+ &perror("FATAL: can't read $dirname/$includefile");
+ }
+ else {
+ print("OK: including $dirname/$includefile\n");
+ $contents .= readmakefile("$dirname/$includefile");
+ }
}
} else {
# we don't want the include Makefile.common lines