mksh: remove stupid nonsense from manpage.
This commit is contained in:
parent
51922c7ae7
commit
af6b72f5db
2 changed files with 123 additions and 28 deletions
123
srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch
Normal file
123
srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch
Normal file
|
@ -0,0 +1,123 @@
|
|||
--- mksh.1.orig 2014-10-07 21:45:57.360527167 +0200
|
||||
+++ mksh.1 2014-10-07 21:46:41.554289047 +0200
|
||||
@@ -34,119 +34,7 @@
|
||||
.\" additional code to convene between the UCB mdoc macropackage (and
|
||||
.\" its variant as BSD mdoc in groff) and the GNU mdoc macropackage.
|
||||
.\"
|
||||
-.ie \n(.g \{\
|
||||
-. if \*[.T]ascii .tr \-\N'45'
|
||||
-. if \*[.T]latin1 .tr \-\N'45'
|
||||
-. if \*[.T]utf8 .tr \-\N'45'
|
||||
-. ds <= \[<=]
|
||||
-. ds >= \[>=]
|
||||
-. ds Rq \[rq]
|
||||
-. ds Lq \[lq]
|
||||
-. ds sL \(aq
|
||||
-. ds sR \(aq
|
||||
-. if \*[.T]utf8 .ds sL `
|
||||
-. if \*[.T]ps .ds sL `
|
||||
-. if \*[.T]utf8 .ds sR '
|
||||
-. if \*[.T]ps .ds sR '
|
||||
-. ds aq \(aq
|
||||
-. ds TI \(ti
|
||||
-. ds ha \(ha
|
||||
-. ds en \(en
|
||||
-.\}
|
||||
-.el \{\
|
||||
-. ds aq '
|
||||
-. ds TI ~
|
||||
-. ds ha ^
|
||||
-. ds en \(em
|
||||
-.\}
|
||||
-.\"
|
||||
-.\" Implement .Dd with the Mdocdate RCS keyword
|
||||
-.\"
|
||||
-.rn Dd xD
|
||||
-.de Dd
|
||||
-.ie \\$1$Mdocdate: \{\
|
||||
-. xD \\$2 \\$3, \\$4
|
||||
-.\}
|
||||
-.el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
|
||||
-..
|
||||
-.\"
|
||||
-.\" .Dd must come before definition of .Mx, because when called
|
||||
-.\" with -mandoc, it might implement .Mx itself, but we want to
|
||||
-.\" use our own definition. And .Dd must come *first*, always.
|
||||
-.\"
|
||||
-.Dd $Mdocdate: October 7 2014 $
|
||||
-.\"
|
||||
-.\" Check which macro package we use, and do other -mdoc setup.
|
||||
-.\"
|
||||
-.ie \n(.g \{\
|
||||
-. if \*[.T]utf8 .tr \[la]\*(Lt
|
||||
-. if \*[.T]utf8 .tr \[ra]\*(Gt
|
||||
-. ie d volume-ds-1 .ds tT gnu
|
||||
-. el .ds tT bsd
|
||||
-.\}
|
||||
-.el .ds tT ucb
|
||||
-.\"
|
||||
-.\" Implement .Mx (MirBSD)
|
||||
-.\"
|
||||
-.ie "\*(tT"gnu" \{\
|
||||
-. eo
|
||||
-. de Mx
|
||||
-. nr curr-font \n[.f]
|
||||
-. nr curr-size \n[.ps]
|
||||
-. ds str-Mx \f[\n[curr-font]]\s[\n[curr-size]u]
|
||||
-. ds str-Mx1 \*[Tn-font-size]\%MirOS\*[str-Mx]
|
||||
-. if !\n[arg-limit] \
|
||||
-. if \n[.$] \{\
|
||||
-. ds macro-name Mx
|
||||
-. parse-args \$@
|
||||
-. \}
|
||||
-. if (\n[arg-limit] > \n[arg-ptr]) \{\
|
||||
-. nr arg-ptr +1
|
||||
-. ie (\n[type\n[arg-ptr]] == 2) \
|
||||
-. as str-Mx1 \~\*[arg\n[arg-ptr]]
|
||||
-. el \
|
||||
-. nr arg-ptr -1
|
||||
-. \}
|
||||
-. ds arg\n[arg-ptr] "\*[str-Mx1]
|
||||
-. nr type\n[arg-ptr] 2
|
||||
-. ds space\n[arg-ptr] "\*[space]
|
||||
-. nr num-args (\n[arg-limit] - \n[arg-ptr])
|
||||
-. nr arg-limit \n[arg-ptr]
|
||||
-. if \n[num-args] \
|
||||
-. parse-space-vector
|
||||
-. print-recursive
|
||||
-..
|
||||
-. ec
|
||||
-. ds sP \s0
|
||||
-. ds tN \*[Tn-font-size]
|
||||
-.\}
|
||||
-.el \{\
|
||||
-. de Mx
|
||||
-. nr cF \\n(.f
|
||||
-. nr cZ \\n(.s
|
||||
-. ds aa \&\f\\n(cF\s\\n(cZ
|
||||
-. if \\n(aC==0 \{\
|
||||
-. ie \\n(.$==0 \&MirOS\\*(aa
|
||||
-. el .aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
|
||||
-. \}
|
||||
-. if \\n(aC>\\n(aP \{\
|
||||
-. nr aP \\n(aP+1
|
||||
-. ie \\n(C\\n(aP==2 \{\
|
||||
-. as b1 \&MirOS\ #\&\\*(A\\n(aP\\*(aa
|
||||
-. ie \\n(aC>\\n(aP \{\
|
||||
-. nr aP \\n(aP+1
|
||||
-. nR
|
||||
-. \}
|
||||
-. el .aZ
|
||||
-. \}
|
||||
-. el \{\
|
||||
-. as b1 \&MirOS\\*(aa
|
||||
-. nR
|
||||
-. \}
|
||||
-. \}
|
||||
-..
|
||||
-.\}
|
||||
-.\"-
|
||||
+.Dd October 7 2014
|
||||
.Dt MKSH 1
|
||||
.Os MirBSD
|
||||
.Sh NAME
|
|
@ -1,28 +0,0 @@
|
|||
$NetBSD: patch-mksh.1,v 1.6 2014/09/07 12:46:31 bsiegert Exp $
|
||||
|
||||
Kill the .Dt override and restore installation a normal man page.
|
||||
--- mksh.1.orig 2014-07-29 17:26:49.000000000 +0000
|
||||
+++ mksh.1
|
||||
@@ -60,21 +60,11 @@
|
||||
. ds en \(em
|
||||
.\}
|
||||
.\"
|
||||
-.\" Implement .Dd with the Mdocdate RCS keyword
|
||||
-.\"
|
||||
-.rn Dd xD
|
||||
-.de Dd
|
||||
-.ie \\$1$Mdocdate: \{\
|
||||
-. xD \\$2 \\$3, \\$4
|
||||
-.\}
|
||||
-.el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
|
||||
-..
|
||||
-.\"
|
||||
.\" .Dd must come before definition of .Mx, because when called
|
||||
.\" with -mandoc, it might implement .Mx itself, but we want to
|
||||
.\" use our own definition. And .Dd must come *first*, always.
|
||||
.\"
|
||||
-.Dd $Mdocdate: October 3 2014 $
|
||||
+.Dd October 3 2014
|
||||
.\"
|
||||
.\" Check which macro package we use, and do other -mdoc setup.
|
||||
.\"
|
Loading…
Reference in a new issue