summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam>2006-05-02 02:28:24 +0000
committerjlam <jlam>2006-05-02 02:28:24 +0000
commit1792a80faaa8a38fd5f91217899dc2914dfef7ae (patch)
treee949c071045afc552a88cbdefe2af9059c0e2efa /lang
parent23c63a5b5e0e68c65dc60c9041ae292a0aa58172 (diff)
downloadpkgsrc-1792a80faaa8a38fd5f91217899dc2914dfef7ae.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.mk6
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 }' \