diff options
author | jlam <jlam> | 2006-05-02 02:28:24 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-05-02 02:28:24 +0000 |
commit | bbaf048ff9c7b6aea491ea02ec3a5006871d16f1 (patch) | |
tree | e949c071045afc552a88cbdefe2af9059c0e2efa /lang | |
parent | 85ba172c5cf00d6e118479bfe951c07b49376c05 (diff) | |
download | pkgsrc-bbaf048ff9c7b6aea491ea02ec3a5006871d16f1.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')
-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 }' \ |