Fix the HTML markup produced by "make readmes" in /usr/ports.

Submitted by:	Nick Nauwelaerts <nick@wanadoo.be>
PR:		2233
This commit is contained in:
naddy 2001-12-13 15:40:27 +00:00
parent e23d80bbcb
commit 07838e78bd
4 changed files with 26 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.500 2001/11/22 16:02:26 naddy Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.501 2001/12/13 15:40:27 naddy Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -2396,10 +2396,10 @@ README.html:
@if [ -s $@.tmp$I ]; then \
{ cat $@.tmp$I | while read n; do \
j=`dirname $$n|${HTMLIFY}`; k=`basename $$n|${HTMLIFY}`; \
echo "<A HREF=\"${PKGDEPTH}/$$j/README.html\">$$k</A>"; \
echo "<li><a href=\"${PKGDEPTH}/$$j/README.html\">$$k</a>"; \
done; } >$@.tmp$Ia; \
else \
echo "(none)" > $@.tmp$Ia; \
echo "<li>(none)" > $@.tmp$Ia; \
fi
.endfor
@cat ${README_NAME} | \

View File

@ -1,4 +1,9 @@
<H1>Ports in Category %%CATEGORY%%</H1>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head><title>Ports in Category %%CATEGORY%%</title></head>
<body>
<h1>Ports in Category %%CATEGORY%%</h1>
<h2>Description</h2>
%%DESCR%%
@ -7,3 +12,5 @@
<dl>
%%SUBDIR%%
</dl>
</body></html>

View File

@ -1,4 +1,8 @@
<H1>The %%PORT%% port</H1>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><head><title>The %%PORT%% port</title></head>
<body>
<h1>The %%PORT%% port</h1>
<H2>
%%PKG%%
@ -23,3 +27,5 @@
<ul>
%%RUN_DEPENDS%%
</ul>
</body></html>

View File

@ -1,4 +1,9 @@
<H1>OpenBSD ports collection</H1>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head><title>OpenBSD ports collection</title></head>
<body>
<h1>OpenBSD ports collection</h1>
<h2>Description</h2>
%%DESCR%%
@ -7,3 +12,5 @@
<dl COMPACT>
%%SUBDIR%%
</dl>
</body></html>