diff options
author | agc <agc> | 1998-07-22 09:18:46 +0000 |
---|---|---|
committer | agc <agc> | 1998-07-22 09:18:46 +0000 |
commit | 6b238c0bb1f3c971d5118a653fb760c139edfddc (patch) | |
tree | 0dccdbcc105dddc56895ac9a879a3a586c1feb32 /mk | |
parent | 978f6f54855c6c1fc23e82b1ae474b0ffedb9750 (diff) | |
download | pkgsrc-6b238c0bb1f3c971d5118a653fb760c139edfddc.tar.gz |
Add any licensing information to the README.html files which are generated
for each package.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index fa2218d3c73..f0fb1cb1e2d 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.123 1998/07/22 07:30:22 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.124 1998/07/22 09:18:46 agc Exp $ # # This file is in the public domain. # @@ -1723,6 +1723,13 @@ README_NAME= ${TEMPLATES}/README.pkg README_NAME= ${TEMPLATES}/README.port .endif +# set up the correct license information as a sed expression +.ifdef LICENSE +SED_LICENSE_EXPR= -e 's|%%LICENSE%%|<p>Please note that this package has a ${LICENSE} license.</p>|' +.else +SED_LICENSE_EXPR= -e 's|%%LICENSE%%||' +.endif + README.html: @${MAKE} depends-list PACKAGE_NAME_AS_LINK=YES | sort -u >> $@.tmp1 @[ -s $@.tmp1 ] || echo "<I>(none)</I>" >> $@.tmp1 @@ -1735,6 +1742,7 @@ README.html: ${SED} -e 's|%%PORT%%|'"`${MAKE} package-path | ${HTMLIFY}`"'|g' \ -e '/%%PKG%%/r$@.tmp3' \ -e '/%%PKG%%/d' \ + ${SED_LICENSE_EXPR} \ -e '/%%COMMENT%%/r${PKGDIR}/COMMENT' \ -e '/%%COMMENT%%/d' \ -e '/%%BUILD_DEPENDS%%/r$@.tmp1' \ |