summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-03-20 12:39:00 +0000
committeragc <agc@pkgsrc.org>2001-03-20 12:39:00 +0000
commit7a3e46acb25036296a15173c06fd1286a8b9a580 (patch)
tree10830bf733676e6283e4c4d64eb620191795451e /mk
parent4b0564e2d06ab19f001f58dc4103bc7f5e64061b (diff)
downloadpkgsrc-7a3e46acb25036296a15173c06fd1286a8b9a580.tar.gz
Check for the existence of the ${LICENSE} file before trying to access it.
Pointed out by Thomas Klausner.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f4f42a8516a..b0870ab1932 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.691 2001/03/20 00:04:15 fredb Exp $
+# $NetBSD: bsd.pkg.mk,v 1.692 2001/03/20 12:39:00 agc Exp $
#
# This file is in the public domain.
#
@@ -2998,7 +2998,12 @@ print-run-depends-list:
.if !target(show-license)
show-license show-licence:
@if [ "${LICENSE}" != "" ]; then \
- ${CAT} ${PKGSRCDIR}/licenses/${LICENSE}; \
+ if [ -e ${PKGSRCDIR}/licenses/${LICENSE} ]; then \
+ ${CAT} ${PKGSRCDIR}/licenses/${LICENSE}; \
+ else \
+ ${ECHO} "Generic ${LICENSE} information not available"; \
+ ${ECHO} "See the package description (pkg_info -d ${PKGNAME}) for more information."; \
+ fi \
fi
.endif