diff options
author | jlam <jlam@pkgsrc.org> | 2006-05-02 02:28:24 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-05-02 02:28:24 +0000 |
commit | 92f0b330ce5a46a70cb4f90ecd74066537756b8a (patch) | |
tree | e949c071045afc552a88cbdefe2af9059c0e2efa /lang/perl5 | |
parent | 30cdb0b6dae7006c75fafd9f21caf3d21aa71c11 (diff) | |
download | pkgsrc-92f0b330ce5a46a70cb4f90ecd74066537756b8a.tar.gz |
Error out if the packlist isn't specified correctly, so we don't pretend
to have a working PLIST and a successful installation.
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/packlist.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/perl5/packlist.mk b/lang/perl5/packlist.mk index e5c2fb86c13..0175677bc56 100644 --- a/lang/perl5/packlist.mk +++ b/lang/perl5/packlist.mk @@ -1,4 +1,4 @@ -# $NetBSD: packlist.mk,v 1.5 2006/04/09 06:34:32 jlam Exp $ +# $NetBSD: packlist.mk,v 1.6 2006/05/02 02:28:24 jlam Exp $ # # This Makefile fragment is intended to be included by packages that # create packlist files. This file is automatically included by @@ -88,6 +88,10 @@ perl-packlist: ${_PKG_SILENT}${_PKG_DEBUG} \ ${TEST} -n ${_PERL5_PACKLIST:Q}"" || exit 0; \ for file in ${_PERL5_PACKLIST}; do \ + if ${TEST} ! -f "$$file"; then \ + ${ECHO} 1>&2 "Perl packlist $$file is missing."; \ + exit 1; \ + fi; \ ${AWK} '${_PERL5_PACKLIST_AWK_STRIP_MANZ} \ ${_PERL5_PACKLIST_AWK_ADD_MANZ.${_MANZ}} \ { print $$0 }' \ |