diff options
author | agc <agc@pkgsrc.org> | 2001-03-20 12:39:00 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-03-20 12:39:00 +0000 |
commit | 7a3e46acb25036296a15173c06fd1286a8b9a580 (patch) | |
tree | 10830bf733676e6283e4c4d64eb620191795451e /mk/bsd.pkg.mk | |
parent | 4b0564e2d06ab19f001f58dc4103bc7f5e64061b (diff) | |
download | pkgsrc-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/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 9 |
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 |