summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-01-05 17:37:12 +0000
committeragc <agc@pkgsrc.org>2001-01-05 17:37:12 +0000
commitd530450306812db69e6a6d4b848d5dcb8c6d1784 (patch)
treedace3d2988c184a4d524a2d271f2447e6587f186 /mk
parentb1f83aa475157b3702b943d4c0614f722af190ab (diff)
downloadpkgsrc-d530450306812db69e6a6d4b848d5dcb8c6d1784.tar.gz
Add a "show-license" target, and a "show-licence" alias, to display
the package's licence, if it's non-standard.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 72210e42db5..0555a9ece5f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.634 2001/01/04 15:10:50 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.635 2001/01/05 17:37:12 agc Exp $
#
# This file is in the public domain.
#
@@ -2942,6 +2942,12 @@ print-run-depends-list:
.endif
.endif
+.if !target(show-license)
+show-license show-licence:
+ @if [ "${LICENSE}" != "" ]; then \
+ ${CAT} ${PKGSRCDIR}/licenses/${LICENSE}; \
+ fi
+.endif
# Stat all the files of one pkg and sum the sizes up.
#