Install mdocml's default CSS as /usr/share/man/style.css. Switch HTML
man pages to use mandoc unconditional as it gives reasonable output for all man pages, not only a subset of mdoc(7). Use the newly installed style.css for formatting and produce hyperlinks for .Xr.
This commit is contained in:
parent
e0e10b0607
commit
e4c9126b4d
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: mi,v 1.1213 2010/06/01 10:24:14 skrll Exp $
|
||||
# $NetBSD: mi,v 1.1214 2010/06/01 23:29:09 joerg Exp $
|
||||
#
|
||||
# Note: don't delete entries from here - mark them as "obsolete" instead.
|
||||
#
|
||||
|
@ -7894,3 +7894,4 @@
|
|||
./usr/share/man/man8/zic.8 man-sysutil-man .man
|
||||
./usr/share/man/man8/zzz.8 man-sysutil-man .man
|
||||
./usr/share/man/man9/boot.9 man-obsolete obsolete
|
||||
./usr/share/man/style.css man-mdocml-htmlman html
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2 2010/06/01 21:32:40 joerg Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2010/06/01 23:29:10 joerg Exp $
|
||||
|
||||
MAN= mandoc_man.7 mandoc_char.7 mandoc_mdoc.7 mandoc_roff.7 \
|
||||
manuals.7
|
||||
|
@ -22,4 +22,9 @@ mandoc_roff.7:
|
|||
|
||||
CLEANFILES+= mandoc_man.7 mandoc_mdoc.7
|
||||
|
||||
.if (${MKHTML} != "no") && (${MKMAN} != "no")
|
||||
FILES= ${DISTDIR}/style.css
|
||||
FILESDIR= /usr/share/man
|
||||
.endif
|
||||
|
||||
.include <bsd.man.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.man.mk,v 1.103 2010/03/01 22:00:07 joerg Exp $
|
||||
# $NetBSD: bsd.man.mk,v 1.104 2010/06/01 23:29:10 joerg Exp $
|
||||
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
@ -197,18 +197,8 @@ realall: ${HTMLPAGES}
|
|||
|
||||
${_MNUMBERS:@N@.$N.html$N@}: ${HTMLDEPS} # build rule
|
||||
${_MKTARGET_FORMAT}
|
||||
.if ${MKMANDOC} == "yes" && !defined(NOMANDOC)
|
||||
if test ""${NOMANDOC.${.IMPSRC:T}:tl:Q} != "yes"; then \
|
||||
${TOOL_MANDOC_HTML} ${.IMPSRC} > ${.TARGET}.tmp && \
|
||||
mv ${.TARGET}.tmp ${.TARGET}; \
|
||||
else \
|
||||
${TOOL_ROFF_HTML} ${.IMPSRC} > ${.TARGET}.tmp && \
|
||||
mv ${.TARGET}.tmp ${.TARGET}; \
|
||||
fi
|
||||
.else
|
||||
${TOOL_ROFF_HTML} ${.IMPSRC} > ${.TARGET}.tmp && \
|
||||
${TOOL_MANDOC_HTML} ${.IMPSRC} > ${.TARGET}.tmp && \
|
||||
mv ${.TARGET}.tmp ${.TARGET}
|
||||
.endif
|
||||
|
||||
.for F in ${HTMLPAGES:O:u}
|
||||
# construct installed path
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.626 2010/05/28 06:24:59 mrg Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.627 2010/06/01 23:29:10 joerg Exp $
|
||||
|
||||
# This needs to be before bsd.init.mk
|
||||
.if defined(BSD_MK_COMPAT_FILE)
|
||||
|
@ -261,7 +261,7 @@ TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs
|
|||
TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo
|
||||
TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis
|
||||
TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii
|
||||
TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml
|
||||
TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml -Oman=../html%S/%N.html -Ostyle=../style.css
|
||||
TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint
|
||||
TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage
|
||||
TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc
|
||||
|
|
Loading…
Reference in New Issue