From 6bd0d65c650273bf304f345910aeaa6dbb0d1904 Mon Sep 17 00:00:00 2001 From: tsarna Date: Thu, 20 Aug 1998 15:16:34 +0000 Subject: The Grand Homepagification: - New, optional Makefile variable HOMEPAGE, specifies a URL for the home page of the software if it has one. - The value of HOMEPAGE is used to add a link from the README.html files. - pkglint updated to know about it. The "correct" location for HOMEPAGE in the Makefile is after MAINTAINER, in that same section. --- mk/bsd.pkg.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 410c868a7c8..1c21b0503f2 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.145 1998/08/19 15:21:20 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.146 1998/08/20 15:17:16 tsarna Exp $ # # This file is in the public domain. # @@ -1739,6 +1739,13 @@ SED_LICENSE_EXPR= -e 's|%%LICENSE%%|

Please note that this package has a SED_LICENSE_EXPR= -e 's|%%LICENSE%%||' .endif +# set up the "more info URL" information as a sed expression +.ifdef HOMEPAGE +SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%|

This package has a home page.

|' +.else +SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%||' +.endif + README.html: @${MAKE} depends-list PACKAGE_NAME_AS_LINK=YES | sort -u >> $@.tmp1 @[ -s $@.tmp1 ] || echo "(none)" >> $@.tmp1 @@ -1752,6 +1759,7 @@ README.html: -e '/%%PKG%%/r$@.tmp3' \ -e '/%%PKG%%/d' \ ${SED_LICENSE_EXPR} \ + ${SED_HOMEPAGE_EXPR} \ -e '/%%COMMENT%%/r${PKGDIR}/COMMENT' \ -e '/%%COMMENT%%/d' \ -e '/%%BUILD_DEPENDS%%/r$@.tmp1' \ @@ -1775,7 +1783,7 @@ README.html: mv $@.tmp $@ ; \ rm -f $@.BAK ; \ fi - @rm -f $@.tmp1 $@.tmp2 $@.tmp3 $@.tmp4 + @rm -f $@.tmp1 $@.tmp2 $@.tmp3 $@.tmp4 $@.tmp5 .if !target(print-depends-list) print-depends-list: -- cgit v1.2.3