openbsd-ports/textproc/groff/patches/patch-tmac_an-old_tmac
schwarze 98b4adfee4 General cleanup:
* Unbreak groff manuals by using tbl(1); reported by pascal@.
* Deal with our Mdocdate cvs keyword; as designed by jmc@ in 2007.
* Use troffrc for OpenBSD config changes; suggested by Werner Lemberg.
* Unbreak the hdtbl examples; from upstream.
* Volume names in man(7) page headers; suggested by Yuri Pankov.
* Update various string tables; coordinated with upstream.
* Add a README explaining local changes; using feedback from pascal@.
* Better description and bump.
ok pascal@, and tested in an i386 bulk build by naddy@, thanks!
2011-12-04 15:41:26 +00:00

26 lines
1.2 KiB
Plaintext

$OpenBSD: patch-tmac_an-old_tmac,v 1.1 2011/12/04 15:41:26 schwarze Exp $
In man(7), show default volume headers like in mdoc(7).
Inspired by IllumOS, suggested by Yuri Pankov.
Similar patch accepted upstream into groff by Werner Lemberg.
--- tmac/an-old.tmac.orig Fri Dec 31 08:33:09 2010
+++ tmac/an-old.tmac Sun Oct 30 22:37:29 2011
@@ -145,7 +145,17 @@
. ie (\\n[.$] > 3) .ds an-extra2 "\\$4\"
. el .ds an-extra2 \"Sun Release 4.0
. ie (\\n[.$] > 4) .ds an-extra3 "\\$5\"
-. el .ds an-extra3 \"System Programmer's Manual
+. el .ie '\\$2'1' .ds an-extra3 OpenBSD Reference Manual
+. el .ie '\\$2'2' .ds an-extra3 OpenBSD Programmer's Manual
+. el .ie '\\$2'3' .ds an-extra3 OpenBSD Programmer's Manual
+. el .ie '\\$2'3p' .ds an-extra3 Perl Programmers Reference Guide
+. el .ie '\\$2'4' .ds an-extra3 OpenBSD Programmer's Manual
+. el .ie '\\$2'5' .ds an-extra3 OpenBSD Programmer's Manual
+. el .ie '\\$2'6' .ds an-extra3 OpenBSD Reference Manual
+. el .ie '\\$2'7' .ds an-extra3 OpenBSD Reference Manual
+. el .ie '\\$2'8' .ds an-extra3 OpenBSD System Manager's Manual
+. el .ie '\\$2'9' .ds an-extra3 OpenBSD Kernel Manual
+. el .ds an-extra3
. ds an-init
\\..
.