-# $OpenBSD: Makefile.inc,v 1.12 2014/07/02 06:35:26 schwarze Exp $
+# $OpenBSD: Makefile.inc,v 1.13 2014/08/11 04:18:18 schwarze Exp $
.include "Makefile.sub"
.out_ascii .out_lint .out_utf8
.in.mandoc_ascii:
- @echo "${MANDOC} -Tascii ${.IMPSRC:T} > ${.TARGET}"
- @${MANDOC} -Tascii ${.IMPSRC} > ${.TARGET}
+ @echo "${MANDOC} ${MOPTS} -Tascii ${.IMPSRC:T} > ${.TARGET}"
+ @${MANDOC} ${MOPTS} -Tascii ${.IMPSRC} > ${.TARGET}
.mandoc_ascii.diff_ascii:
@echo "${DIFF} ${.IMPSRC:S/mandoc_ascii$/out_ascii/} ${.IMPSRC}"
@${DIFF} ${.CURDIR}/${.IMPSRC:S/mandoc_ascii$/out_ascii/} ${.IMPSRC}
.in.mandoc_utf8:
- @echo "${MANDOC} -Tutf8 ${.IMPSRC:T} > ${.TARGET}"
- @${MANDOC} -Tutf8 ${.IMPSRC} > ${.TARGET}
+ @echo "${MANDOC} ${MOPTS} -Tutf8 ${.IMPSRC:T} > ${.TARGET}"
+ @${MANDOC} ${MOPTS} -Tutf8 ${.IMPSRC} > ${.TARGET}
.mandoc_utf8.diff_utf8:
@echo "${DIFF} ${.IMPSRC:S/mandoc_utf8$/out_utf8/} ${.IMPSRC}"
@${DIFF} ${.CURDIR}/${.IMPSRC:S/mandoc_utf8$/out_utf8/} ${.IMPSRC}
.in.in_man:
- @echo "${MANDOC} -Tman ${.IMPSRC:T} > ${.TARGET}"
- @${MANDOC} -Tman ${.IMPSRC} > ${.TARGET}
+ @echo "${MANDOC} ${MOPTS} -Tman ${.IMPSRC:T} > ${.TARGET}"
+ @${MANDOC} ${MOPTS} -Tman ${.IMPSRC} > ${.TARGET}
.in_man.mandoc_man:
- ${MANDOC} -Tascii -Omdoc ${.IMPSRC} > ${.TARGET}
+ ${MANDOC} -man -Tascii -Omdoc ${.IMPSRC} > ${.TARGET}
.in.mandoc_lint:
- @echo "${MANDOC} -Tlint ${.IMPSRC:T} > ${.TARGET} 2>&1"
- @-${MANDOC} -Tlint ${.IMPSRC} 2>&1 | \
+ @echo "${MANDOC} ${MOPTS} -Tlint ${.IMPSRC:T} > ${.TARGET} 2>&1"
+ @-${MANDOC} ${MOPTS} -Tlint ${.IMPSRC} 2>&1 | \
sed -E 's/^mandoc: \/[^:]+\//mandoc: /' > ${.TARGET}
.mandoc_lint.diff_lint:
# --- the groff program ---
-NROFF = /usr/local/bin/nroff -c -mandoc
+NROFF = /usr/local/bin/nroff -c
+
+.ifdef MOPTS
+NOPTS ?= ${MOPTS}
+.else
+NOPTS ?= -mandoc
+.endif
# --- the list of targets ---
. if empty(SKIP_ASCII:M${t}) && empty(SKIP_ASCII:MALL)
. if empty(SKIP_GROFF:M${t})
${t}.out_ascii: ${t}.in
- ${NROFF} -Tascii ${.ALLSRC} > ${.TARGET}
+ ${NROFF} ${NOPTS} -Tascii ${.ALLSRC} > ${.TARGET}
. else
.PHONY: ${t}.out_ascii
${t}.out_ascii:
.for t in ${UTF8_TARGETS}
. if empty(SKIP_GROFF:M${t})
${t}.out_utf8: ${t}.in
- ${NROFF} -Tutf8 ${.ALLSRC} > ${.TARGET}
+ ${NROFF} ${NOPTS} -Tutf8 ${.ALLSRC} > ${.TARGET}
. else
.PHONY: ${t}.out_utf8
${t}.out_utf8:
.for t in ${LINT_TARGETS}
${t}.out_lint: ${t}.in
- -${MANDOC} -Tlint ${.ALLSRC} > ${.TARGET} 2>&1
+ -${MANDOC} ${MOPTS} -Tlint ${.ALLSRC} > ${.TARGET} 2>&1
.endfor
# --- phony targets ---
-mandoc: case.in:1:8: WARNING: lower case character in document title: TH-case
+mandoc: case.in:1:8: WARNING: lower case character in document title: TH TH-case
-mandoc: emptydate.in:1:20: WARNING: missing date, using today's date
+mandoc: emptydate.in:1:20: WARNING: missing date, using today's date: TH
-mandoc: noTH.in: WARNING: missing .TH macro, using "unknown 1"
+mandoc: noTH.in: WARNING: missing manual title, using ""
mandoc: noTH.in: WARNING: missing date, using today's date
-mandoc: twoargs.in:1:2: ERROR: argument count wrong: line arguments >= 2 (have 1)
-mandoc: twoargs.in:1:2: WARNING: missing date, using today's date
+mandoc: twoargs.in:1:2: WARNING: missing manual section, using "": TH TH-TWOARGS
+mandoc: twoargs.in:1:2: WARNING: missing date, using today's date: TH
-
OpenBSD July 7, 2014 TP-EOF(1)
-mandoc: eof.in: WARNING: line scope broken: at end of file
+mandoc: eof.in:6:2: WARNING: line scope broken: EOF breaks TP
-mandoc: dupe.in:7:2: WARNING: fill mode already enabled, skipping .fi
-mandoc: dupe.in:14:2: WARNING: fill mode already disabled, skipping .nf
+mandoc: dupe.in:7:2: WARNING: fill mode already enabled, skipping: fi
+mandoc: dupe.in:14:2: WARNING: fill mode already disabled, skipping: nf
-.Dd July 8, 2012
+.Dd July 31, 2014
.Dt AN-BREAK 1
.Os OpenBSD
.Sh NAME
and
.An Joerg .
.Pp
-.An -split
+.An -split -nosplit
split mode:
.An Kristaps
.An Ingo
.An Kristaps
.An Ingo
.An Joerg
-.An -nosplit
+.An -nosplit -split
.Pp
inline:
.An Kristaps ,
inline: Kristaps, Ingo, and Joerg.
-OpenBSD July 8, 2012 OpenBSD
+OpenBSD July 31, 2014 OpenBSD
-mandoc: invalid.in:15:5: WARNING: unknown AT&T UNIX version: murks
+mandoc: invalid.in:15:5: WARNING: unknown AT&T UNIX version: At murks
mandoc: badargs.in:12:2: ERROR: skipping all arguments: Ed tail argument
mandoc: badargs.in:14:43: WARNING: duplicate argument: Bd -compact
mandoc: badargs.in:14:51: WARNING: duplicate argument: Bd -offset 6n
-mandoc: badargs.in:19:2: WARNING: missing display type, using -ragged
-mandoc: badargs.in:24:2: WARNING: skipping duplicate display type: unfilled
-mandoc: badargs.in:28:2: WARNING: skipping duplicate display type: ragged
+mandoc: badargs.in:19:2: WARNING: missing display type, using -ragged: Bd
+mandoc: badargs.in:24:2: WARNING: skipping duplicate display type: Bd -unfilled
+mandoc: badargs.in:28:2: WARNING: skipping duplicate display type: Bd -ragged
-mandoc: badargs.in:11:2: WARNING: missing font type, using \fR
+mandoc: badargs.in:11:2: WARNING: missing font type, using \fR: Bf
mandoc: badargs.in:15:5: WARNING: unknown font type, using \fR: Bf badarg
mandoc: badargs.in:17:2: ERROR: skipping all arguments: Ef tail argument
mandoc: badargs.in:27:19: WARNING: empty argument, using 0n: Bl -width
mandoc: badargs.in:31:17: WARNING: empty argument, using 0n: Bl -width
mandoc: badargs.in:35:16: WARNING: empty argument, using 0n: Bl -width
-mandoc: badargs.in:41:2: WARNING: skipping duplicate list type: enum
-mandoc: badargs.in:45:2: WARNING: skipping duplicate list type: bullet
+mandoc: badargs.in:41:2: WARNING: skipping duplicate list type: Bl -enum
+mandoc: badargs.in:45:2: WARNING: skipping duplicate list type: Bl -bullet
mandoc: badargs.in:50:51: WARNING: duplicate argument: Bl -compact
mandoc: badargs.in:50:59: WARNING: duplicate argument: Bl -offset 2n
mandoc: badargs.in:50:69: WARNING: duplicate argument: Bl -width 6n
-mandoc: bareTa.in:9:2: ERROR: skipping column outside column list
-mandoc: bareTa.in:13:2: ERROR: skipping column outside column list
-mandoc: bareTa.in:18:5: ERROR: skipping column outside column list
+mandoc: bareTa.in:9:2: ERROR: skipping column outside column list: Ta
+mandoc: bareTa.in:13:2: ERROR: skipping column outside column list: Ta
+mandoc: bareTa.in:18:5: ERROR: skipping column outside column list: Ta
mandoc: bareTa.in:18:2: ERROR: skipping all arguments: It ignored arguments
.It a b
.It a b
.El
+.\" Wrong number of columns.
+.Bl -column "a" "b"
+.It "a"
+.It "a" Ta "b"
+.It "a" Ta "b" Ta "c"
+.It "a" Ta "b" Ta "c" Ta "d"
+.It "a" Ta "b" Ta "c" Ta "d" Ta "e"
+.El
+.\" Interrupted column list
+.Bl -column "aa" -width 6n -compact "bb" "cc"
+.It aa Ta bb Ta cc Ta dd
+.El
a b
a b
+ a
+ a b
+ a b c
+ a b cd
+ a b cde
+ aa bb cc dd
+
OpenBSD December 24, 2009 OpenBSD
-mandoc: emptyhead.in:12:2: WARNING: empty head in list item: hang
-mandoc: emptyhead.in:21:2: WARNING: empty head in list item: ohang
-mandoc: emptyhead.in:30:2: WARNING: empty head in list item: inset
-mandoc: emptyhead.in:39:2: WARNING: empty head in list item: diag
+mandoc: emptyhead.in:12:2: WARNING: empty head in list item: Bl -hang It
+mandoc: emptyhead.in:21:2: WARNING: empty head in list item: Bl -ohang It
+mandoc: emptyhead.in:30:2: WARNING: empty head in list item: Bl -inset It
+mandoc: emptyhead.in:39:2: WARNING: empty head in list item: Bl -diag It
mandoc: emptyitem.in:10:2: ERROR: skipping all arguments: It head argument
-mandoc: emptyitem.in:12:2: WARNING: empty list item: bullet
-mandoc: emptyitem.in:20:2: WARNING: empty list item: dash
+mandoc: emptyitem.in:12:2: WARNING: empty list item: Bl -bullet It
+mandoc: emptyitem.in:20:2: WARNING: empty list item: Bl -dash It
mandoc: emptyitem.in:20:2: ERROR: skipping all arguments: It head argument
-mandoc: emptyitem.in:28:2: WARNING: empty list item: enum
+mandoc: emptyitem.in:28:2: WARNING: empty list item: Bl -enum It
mandoc: emptyitem.in:29:2: ERROR: skipping all arguments: It head argument
mandoc: emptyitem.in:34:2: ERROR: skipping all arguments: It head argument
-mandoc: emptyitem.in:36:2: WARNING: empty list item: hyphen
+mandoc: emptyitem.in:36:2: WARNING: empty list item: Bl -hyphen It
-mandoc: emptytag.in:12:2: WARNING: empty head in list item: tag
+mandoc: emptytag.in:12:2: WARNING: empty head in list item: Bl -tag It
-mandoc: notype.in:9:2: WARNING: list type is not the first argument: offset
+mandoc: notype.in:9:2: WARNING: list type is not the first argument: Bl -offset
mandoc: notype.in:12:2: ERROR: skipping all arguments: El tail argument
-mandoc: notype.in:14:2: ERROR: missing list type, using -item
+mandoc: notype.in:14:2: ERROR: missing list type, using -item: Bl
-mandoc: badarch.in:2:18: WARNING: unknown manual volume or arch: Cray
+mandoc: badarch.in:2:18: WARNING: unknown manual volume or arch: Dt ... Cray
-mandoc: badsec.in:2:15: WARNING: unknown manual section: foo
+mandoc: badsec.in:2:15: WARNING: unknown manual section: Dt ... foo
-mandoc: case.in:2:6: WARNING: lower case character in document title: Dt-case
+mandoc: case.in:2:6: WARNING: lower case character in document title: Dt Dt-case
-.Dd June 13, 2014
-.Dt DT-DUPE 1
-.Dt DT-DUPE 1
+.Dd August 5, 2014
+.Dt DT-FIRST 2 first_arch
.Os OpenBSD
+.Dt DT-DUPE 1
.Sh NAME
.Nm Dt-order
.Nd duplicate prologue macro
.Sh DESCRIPTION
-some text
+inital text
+.Dt DT-LAST 3 last_arch
+final text
D\bDt\bt-\b-o\bor\brd\bde\ber\br - duplicate prologue macro
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
- some text
+ inital text final text
-OpenBSD June 13, 2014 OpenBSD
+OpenBSD August 5, 2014 OpenBSD
-mandoc: dupe.in:3:2: WARNING: duplicate prologue macro: Dt
+mandoc: dupe.in:2:16: WARNING: unknown manual volume or arch: Dt ... first_arch
+mandoc: dupe.in:4:2: WARNING: duplicate prologue macro: Dt
+mandoc: dupe.in:10:2: WARNING: skipping late title macro: Dt DT-LAST 3 last_arch
-mandoc: order.in:2:2: WARNING: prologue macros out of order: Os
-mandoc: order.in:3:2: WARNING: prologue macros out of order: Dt
+mandoc: order.in:3:2: WARNING: prologue macros out of order: Dt after Os
-# $OpenBSD: Makefile,v 1.7 2014/06/20 18:32:51 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2014/08/11 04:18:18 schwarze Exp $
REGRESS_TARGETS = empty font emptyNAME emptyNAMEuse badNAME badNAMEuse long
LINT_TARGETS = badNAME badNAMEuse
-SKIP_GROFF = emptyNAME emptyNAMEuse badNAME badNAMEuse
+SKIP_GROFF = emptyNAMEuse badNAMEuse
.include <bsd.regress.mk>
NM-BADNAME(1) OpenBSD Reference Manual NM-BADNAME(1)
N\bNA\bAM\bME\bE
- U\bUN\bNK\bKN\bNO\bOW\bWN\bN BSD - text production macro on the NAME Nm line
+ BSD - text production macro on the NAME Nm line
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
badNAME
-mandoc: badNAME.in:5:2: ERROR: manual name not yet set
+mandoc: badNAME.in:5:2: ERROR: missing manual name, using "": Nm
mandoc: badNAME.in:5:5: WARNING: bad NAME section contents: Bx
NM-BADNAMEUSE(1) OpenBSD Reference Manual NM-BADNAMEUSE(1)
N\bNA\bAM\bME\bE
- U\bUN\bNK\bKN\bNO\bOW\bWN\bN BSD - text production macro on the NAME Nm line, used later
+ s\bso\bom\bme\be_\b_n\bna\bam\bme\be BSD - text production macro on the NAME Nm line, used later
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
s\bso\bom\bme\be_\b_n\bna\bam\bme\be
- U\bUN\bNK\bKN\bNO\bOW\bWN\bN
+ s\bso\bom\bme\be_\b_n\bna\bam\bme\be
OpenBSD July 12, 2012 OpenBSD
-mandoc: badNAMEuse.in:5:2: ERROR: manual name not yet set
+mandoc: badNAMEuse.in:5:2: ERROR: missing manual name, using "": Nm
mandoc: badNAMEuse.in:5:5: WARNING: bad NAME section contents: Bx
NM-EMPTYNAME(1) OpenBSD Reference Manual NM-EMPTYNAME(1)
N\bNA\bAM\bME\bE
- U\bUN\bNK\bKN\bNO\bOW\bWN\bN - empty NAME Nm line
+ - empty NAME Nm line
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
emptyNAME
NM-EMPTYNAMEUSE(1) OpenBSD Reference Manual NM-EMPTYNAMEUSE(1)
N\bNA\bAM\bME\bE
- U\bUN\bNK\bKN\bNO\bOW\bWN\bN - empty NAME Nm line, used later
+ s\bso\bom\bme\be_\b_n\bna\bam\bme\be - empty NAME Nm line, used later
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
s\bso\bom\bme\be_\b_n\bna\bam\bme\be
- U\bUN\bNK\bKN\bNO\bOW\bWN\bN
+ s\bso\bom\bme\be_\b_n\bna\bam\bme\be
OpenBSD July 12, 2012 OpenBSD
-mandoc: first.in:4:2: WARNING: first section is not "NAME": DESCRIPTION
+mandoc: first.in:4:2: WARNING: first section is not "NAME": Sh DESCRIPTION
-mandoc: order.in:9:2: WARNING: sections out of conventional order: SYNOPSIS
-mandoc: order.in:10:2: WARNING: duplicate section title: SYNOPSIS
-mandoc: order.in:11:2: WARNING: unexpected section: ERRORS for 2, 3, 4, 9 only
+mandoc: order.in:9:2: WARNING: sections out of conventional order: Sh SYNOPSIS
+mandoc: order.in:10:2: WARNING: duplicate section title: Sh SYNOPSIS
+mandoc: order.in:11:2: WARNING: unexpected section: Sh ERRORS for 2, 3, 4, 9 only
-mandoc: badargs.in:12:5: ERROR: unknown standard specifier: -murks
+mandoc: badargs.in:12:5: ERROR: unknown standard specifier: St -murks
mandoc: badargs.in:15:2: WARNING: skipping empty macro: St
-mandoc: escname.in:21:1: ERROR: escaped character not allowed in a name
-mandoc: escname.in:31:19: ERROR: escaped character not allowed in a name
+mandoc: escname.in:21:1: ERROR: escaped character not allowed in a name: first\e
+mandoc: escname.in:31:19: ERROR: escaped character not allowed in a name: first\e
mandoc: escname.in:32:2: ERROR: skipping unknown macro: .first
mandoc: escname.in:34:2: ERROR: skipping unknown macro: .first\\second
mandoc: escname.in:37:5: ERROR: skipping excess arguments: .de ... excess arguments
-mandoc: escname.in:40:1: ERROR: escaped character not allowed in a name
-mandoc: escname.in:42:1: ERROR: escaped character not allowed in a name
+mandoc: escname.in:40:1: ERROR: escaped character not allowed in a name: witharg\(
+mandoc: escname.in:42:1: ERROR: escaped character not allowed in a name: de\e
mandoc: escname.in:42:1: WARNING: skipping empty request: de
-mandoc: escname.in:8:5: ERROR: escaped character not allowed in a name
-mandoc: escname.in:11:5: ERROR: escaped character not allowed in a name
+mandoc: escname.in:8:5: ERROR: escaped character not allowed in a name: first\e
+mandoc: escname.in:11:5: ERROR: escaped character not allowed in a name: first\e
mandoc: escname.in:17:13: WARNING: invalid escape sequence: \n[second
mandoc: escname.in:17:12: WARNING: whitespace at end of input line
-mandoc: name.in:10:5: ERROR: escaped character not allowed in a name
-mandoc: name.in:12:5: ERROR: escaped character not allowed in a name
+mandoc: name.in:10:5: ERROR: escaped character not allowed in a name: bs\e
+mandoc: name.in:12:5: ERROR: escaped character not allowed in a name: bl\
mandoc: name.in:15:29: WARNING: invalid escape sequence: \*[norm
mandoc: name.in:15:29: WARNING: undefined string, using "": norm
mandoc: name.in:15:28: WARNING: whitespace at end of input line