diff options
author | agc <agc> | 2001-03-20 12:39:00 +0000 |
---|---|---|
committer | agc <agc> | 2001-03-20 12:39:00 +0000 |
commit | 55aa7b2055d661e270d09078b09fa52af3d75e6b (patch) | |
tree | 10830bf733676e6283e4c4d64eb620191795451e | |
parent | ac5e17366e01f3ea5aa25c8b8a2b07adf3e1edce (diff) | |
download | pkgsrc-55aa7b2055d661e270d09078b09fa52af3d75e6b.tar.gz |
Check for the existence of the ${LICENSE} file before trying to access it.
Pointed out by Thomas Klausner.
-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 |