diff options
author | wiz <wiz> | 2003-04-22 08:26:57 +0000 |
---|---|---|
committer | wiz <wiz> | 2003-04-22 08:26:57 +0000 |
commit | fe1c1a913df14230931a1b4127e070a30ec81e2e (patch) | |
tree | 3bdf2aa31542a5f0e67cd8547c20c102aa9e9bd8 | |
parent | 86b8f7a99eca966000e9267ad03bbb0d52ff8109 (diff) | |
download | pkgsrc-fe1c1a913df14230931a1b4127e070a30ec81e2e.tar.gz |
3.51: Yell if .included files do not exist.
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 11 |
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 |