diff options
author | rillig <rillig> | 2007-08-13 09:45:49 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-08-13 09:45:49 +0000 |
commit | 5fc648209c559b06492e46bf360a0523feb5e57d (patch) | |
tree | daaf6d2881c0c76503f4320a9a6e97f088ab051f /mk/bsd.pkg.readme.mk | |
parent | 9b11dbb06f53e47cff15a68c4afbbac90d96ef4e (diff) | |
download | pkgsrc-5fc648209c559b06492e46bf360a0523feb5e57d.tar.gz |
PKGNAME and PKGPATH will never contain characters that need to be
escaped for HTML output.
Diffstat (limited to 'mk/bsd.pkg.readme.mk')
-rw-r--r-- | mk/bsd.pkg.readme.mk | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mk/bsd.pkg.readme.mk b/mk/bsd.pkg.readme.mk index 022776209a0..3c4855d573f 100644 --- a/mk/bsd.pkg.readme.mk +++ b/mk/bsd.pkg.readme.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.readme.mk,v 1.11 2007/08/06 19:28:17 adrianp Exp $ +# $NetBSD: bsd.pkg.readme.mk,v 1.12 2007/08/13 09:45:49 rillig Exp $ # # This Makefile fragment is included by bsd.pkg.mk and encapsulates the # code to produce README.html files in each package directory. @@ -37,9 +37,7 @@ # This variable is passed down via build-depends-list and run-depends-list PACKAGE_NAME_TYPE?= name -_HTML_PKGNAME= ${PKGNAME:S/&/\&/g:S/>/\>/g:S/</\</g} -_HTML_PKGPATH= ${PKGPATH:S/&/\&/g:S/>/\>/g:S/</\</g} -_HTML_PKGLINK= <a href="../../${_HTML_PKGPATH}/README.html">${_HTML_PKGNAME}</a> +_HTML_PKGLINK= <a href="../../${PKGPATH}/README.html">${PKGNAME}</a> .PHONY: package-name .if !target(package-name) @@ -56,7 +54,7 @@ package-name: .PHONY: make-readme-html-help .if !target(make-readme-html-help) make-readme-html-help: - @${ECHO} '${PKGNAME:S/&/\&/g:S/>/\>/g:S/</\</g}</a>: <TD>'${COMMENT:S/&/\&/g:S/>/\>/g:S/</\</g:Q} + @${ECHO} '${PKGNAME}</a>: <TD>'${COMMENT:Q} .endif # !target(make-readme-html-help) # Show (non-recursively) all the packages this package depends on. |