diff options
author | agc <agc@pkgsrc.org> | 2001-01-05 17:37:12 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-01-05 17:37:12 +0000 |
commit | d530450306812db69e6a6d4b848d5dcb8c6d1784 (patch) | |
tree | dace3d2988c184a4d524a2d271f2447e6587f186 /mk | |
parent | b1f83aa475157b3702b943d4c0614f722af190ab (diff) | |
download | pkgsrc-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.mk | 8 |
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. # |