Skip to content

Commit

Permalink
integrate latest portmdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Dec 29, 2023
1 parent 45a9f38 commit 6964496
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 24 deletions.
41 changes: 33 additions & 8 deletions cpio.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.\" $MirOS: src/bin/pax/cpio.1,v 1.43 2023/08/03 22:15:24 tg Exp $
.\" $MirOS: src/bin/pax/cpio.1,v 1.44 2023/12/29 00:44:30 tg Exp $
.\" $OpenBSD: cpio.1,v 1.35 2014/09/08 01:27:54 schwarze Exp $
.\"
.\" Copyright © 2005, 2009, 2011, 2012, 2014, 2015, 2016,
.\" 2017, 2018, 2023
.\" 2017, 2018
.\" mirabilos <[email protected]>
.\" Copyright (c) 1997 SigmaSoft, Th. Lockert
.\" All rights reserved.
Expand All @@ -27,6 +27,11 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"-
.\" $miros: contrib/samples/portmdoc,v 1.22 2023/12/28 23:47:20 tg Exp $
.\"-
.\" Copyright © 2008, 2009, 2010, 2016, 2018, 2020, 2023
.\" mirabilos <[email protected]>
.\"
.\" Glue GNU groff (BSD and GNU mdoc both) to AT&T nroff (UCB mdoc).
.\" * ` generates ‘ in gnroff, so use \`
.\" * ' generates ’ in gnroff, \' generates ´, so use \*(aq
Expand Down Expand Up @@ -55,11 +60,12 @@
.\" .Dd must come before most everything, because when called
.\" with -mandoc it loads -mdoc via .so in .Dd (first macro).
.\"
.Dd $Mdocdate: August 3 2023 $
.Dd $Mdocdate: December 29 2023 $
.\"
.\" Check which macro package we use, and do other -mdoc setup.
.\"
.ie \n(.g \{\
. if n .ss \n[.ss] 0
. if \*[.T]ascii .tr \-\N'45'
. if \*[.T]latin1 .tr \-\N'45'
. if \*[.T]utf8 .tr \-\N'45'
Expand Down Expand Up @@ -117,7 +123,7 @@
. 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]]
. ds str-Mx1 \*(tN\%MirBSD\~#\*[arg\n[arg-ptr]]\*[str-Mx]
. el \
. nr arg-ptr -1
. \}
Expand All @@ -130,6 +136,19 @@
. parse-space-vector
. print-recursive
..
. de Aq
. if !\n[arg-limit] \
. ds macro-name Aq
. ie \n[in-authors-section] \{\
. ds quote-left \*(Lt
. ds quote-right \*(Gt
. \}
. el \{\
. ds quote-left \[la]
. ds quote-right \[ra]
. \}
. enclose-string \$@
..
. ec
.\}
.el .ie "\*(tT"gnp" \{\
Expand All @@ -150,7 +169,7 @@
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
. as doc-str-Mx1 \~\*[doc-arg\n[doc-arg-ptr]]
. ds doc-str-Mx1 \*(tN\%MirBSD\~#\*[doc-arg\n[doc-arg-ptr]]\*[doc-str-Mx]
. el \
. nr doc-arg-ptr -1
. \}
Expand All @@ -171,26 +190,32 @@
. nr cZ \\n(.s
. ds aa \&\f\\n(cF\s\\n(cZ
. if \\n(aC==0 \{\
. ie \\n(.$==0 \&MirBSD\\*(aa
. ie \\n(.$==0 \&\\*(tNMirBSD\\*(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 \&MirBSD\ #\&\\*(A\\n(aP\\*(aa
. nr xX 0
. nr xX 1+\\*(A\\n(aP
. as b1 \&\\*(tNMirBSD\ \&
. if \\n(xX>0 .as b1 #\&
. as b1 \&\\*(A\\n(aP\\*(aa
. rr xX
. ie \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. nR
. \}
. el .aZ
. \}
. el \{\
. as b1 \&MirBSD\\*(aa
. as b1 \&\\*(tNMirBSD\\*(aa
. nR
. \}
. \}
..
.\}
.\" </MirCVS://contrib/samples/portmdoc>
.\"-
.ie \ng==1 \{\
. ds nc mircpio
Expand Down
41 changes: 33 additions & 8 deletions pax.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.\" $MirOS: src/bin/pax/pax.1,v 1.37 2023/08/03 22:15:24 tg Exp $
.\" $MirOS: src/bin/pax/pax.1,v 1.38 2023/12/29 00:44:31 tg Exp $
.\" $OpenBSD: pax.1,v 1.74 2018/07/23 19:02:49 kn Exp $
.\" $NetBSD: pax.1,v 1.3 1995/03/21 09:07:37 cgd Exp $
.\"
.\" Copyright © 2005, 2009, 2011, 2012, 2014, 2016, 2017, 2018, 2023
.\" Copyright © 2005, 2009, 2011, 2012, 2014, 2016, 2017, 2018, 2021
.\" mirabilos <[email protected]>
.\" Copyright (c) 1992 Keith Muller.
.\" Copyright (c) 1992, 1993
Expand Down Expand Up @@ -38,6 +38,11 @@
.\" @(#)pax.1 8.4 (Berkeley) 4/18/94
.\"
.\"-
.\" $miros: contrib/samples/portmdoc,v 1.22 2023/12/28 23:47:20 tg Exp $
.\"-
.\" Copyright © 2008, 2009, 2010, 2016, 2018, 2020, 2023
.\" mirabilos <[email protected]>
.\"
.\" Glue GNU groff (BSD and GNU mdoc both) to AT&T nroff (UCB mdoc).
.\" * ` generates ‘ in gnroff, so use \`
.\" * ' generates ’ in gnroff, \' generates ´, so use \*(aq
Expand Down Expand Up @@ -66,11 +71,12 @@
.\" .Dd must come before most everything, because when called
.\" with -mandoc it loads -mdoc via .so in .Dd (first macro).
.\"
.Dd $Mdocdate: August 3 2023 $
.Dd $Mdocdate: December 29 2023 $
.\"
.\" Check which macro package we use, and do other -mdoc setup.
.\"
.ie \n(.g \{\
. if n .ss \n[.ss] 0
. if \*[.T]ascii .tr \-\N'45'
. if \*[.T]latin1 .tr \-\N'45'
. if \*[.T]utf8 .tr \-\N'45'
Expand Down Expand Up @@ -128,7 +134,7 @@
. 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]]
. ds str-Mx1 \*(tN\%MirBSD\~#\*[arg\n[arg-ptr]]\*[str-Mx]
. el \
. nr arg-ptr -1
. \}
Expand All @@ -141,6 +147,19 @@
. parse-space-vector
. print-recursive
..
. de Aq
. if !\n[arg-limit] \
. ds macro-name Aq
. ie \n[in-authors-section] \{\
. ds quote-left \*(Lt
. ds quote-right \*(Gt
. \}
. el \{\
. ds quote-left \[la]
. ds quote-right \[ra]
. \}
. enclose-string \$@
..
. ec
.\}
.el .ie "\*(tT"gnp" \{\
Expand All @@ -161,7 +180,7 @@
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
. as doc-str-Mx1 \~\*[doc-arg\n[doc-arg-ptr]]
. ds doc-str-Mx1 \*(tN\%MirBSD\~#\*[doc-arg\n[doc-arg-ptr]]\*[doc-str-Mx]
. el \
. nr doc-arg-ptr -1
. \}
Expand All @@ -182,26 +201,32 @@
. nr cZ \\n(.s
. ds aa \&\f\\n(cF\s\\n(cZ
. if \\n(aC==0 \{\
. ie \\n(.$==0 \&MirBSD\\*(aa
. ie \\n(.$==0 \&\\*(tNMirBSD\\*(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 \&MirBSD\ #\&\\*(A\\n(aP\\*(aa
. nr xX 0
. nr xX 1+\\*(A\\n(aP
. as b1 \&\\*(tNMirBSD\ \&
. if \\n(xX>0 .as b1 #\&
. as b1 \&\\*(A\\n(aP\\*(aa
. rr xX
. ie \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. nR
. \}
. el .aZ
. \}
. el \{\
. as b1 \&MirBSD\\*(aa
. as b1 \&\\*(tNMirBSD\\*(aa
. nR
. \}
. \}
..
.\}
.\" </MirCVS://contrib/samples/portmdoc>
.\"-
.ie \ng==1 \{\
. ds nc mircpio
Expand Down
41 changes: 33 additions & 8 deletions tar.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.\" $MirOS: src/bin/pax/tar.1,v 1.47 2023/08/03 22:15:25 tg Exp $
.\" $MirOS: src/bin/pax/tar.1,v 1.48 2023/12/29 00:44:31 tg Exp $
.\" $OpenBSD: tar.1,v 1.61 2018/07/23 19:02:49 kn Exp $
.\"
.\" Copyright © 2005, 2008, 2009, 2011, 2012, 2014, 2016,
.\" 2017, 2018, 2019, 2020, 2023
.\" 2017, 2018, 2019, 2020, 2021
.\" mirabilos <[email protected]>
.\" Copyright (c) 1996 SigmaSoft, Th. Lockert
.\" All rights reserved.
Expand All @@ -27,6 +27,11 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"-
.\" $miros: contrib/samples/portmdoc,v 1.22 2023/12/28 23:47:20 tg Exp $
.\"-
.\" Copyright © 2008, 2009, 2010, 2016, 2018, 2020, 2023
.\" mirabilos <[email protected]>
.\"
.\" Glue GNU groff (BSD and GNU mdoc both) to AT&T nroff (UCB mdoc).
.\" * ` generates ‘ in gnroff, so use \`
.\" * ' generates ’ in gnroff, \' generates ´, so use \*(aq
Expand Down Expand Up @@ -55,11 +60,12 @@
.\" .Dd must come before most everything, because when called
.\" with -mandoc it loads -mdoc via .so in .Dd (first macro).
.\"
.Dd $Mdocdate: August 3 2023 $
.Dd $Mdocdate: December 29 2023 $
.\"
.\" Check which macro package we use, and do other -mdoc setup.
.\"
.ie \n(.g \{\
. if n .ss \n[.ss] 0
. if \*[.T]ascii .tr \-\N'45'
. if \*[.T]latin1 .tr \-\N'45'
. if \*[.T]utf8 .tr \-\N'45'
Expand Down Expand Up @@ -117,7 +123,7 @@
. 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]]
. ds str-Mx1 \*(tN\%MirBSD\~#\*[arg\n[arg-ptr]]\*[str-Mx]
. el \
. nr arg-ptr -1
. \}
Expand All @@ -130,6 +136,19 @@
. parse-space-vector
. print-recursive
..
. de Aq
. if !\n[arg-limit] \
. ds macro-name Aq
. ie \n[in-authors-section] \{\
. ds quote-left \*(Lt
. ds quote-right \*(Gt
. \}
. el \{\
. ds quote-left \[la]
. ds quote-right \[ra]
. \}
. enclose-string \$@
..
. ec
.\}
.el .ie "\*(tT"gnp" \{\
Expand All @@ -150,7 +169,7 @@
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
. as doc-str-Mx1 \~\*[doc-arg\n[doc-arg-ptr]]
. ds doc-str-Mx1 \*(tN\%MirBSD\~#\*[doc-arg\n[doc-arg-ptr]]\*[doc-str-Mx]
. el \
. nr doc-arg-ptr -1
. \}
Expand All @@ -171,26 +190,32 @@
. nr cZ \\n(.s
. ds aa \&\f\\n(cF\s\\n(cZ
. if \\n(aC==0 \{\
. ie \\n(.$==0 \&MirBSD\\*(aa
. ie \\n(.$==0 \&\\*(tNMirBSD\\*(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 \&MirBSD\ #\&\\*(A\\n(aP\\*(aa
. nr xX 0
. nr xX 1+\\*(A\\n(aP
. as b1 \&\\*(tNMirBSD\ \&
. if \\n(xX>0 .as b1 #\&
. as b1 \&\\*(A\\n(aP\\*(aa
. rr xX
. ie \\n(aC>\\n(aP \{\
. nr aP \\n(aP+1
. nR
. \}
. el .aZ
. \}
. el \{\
. as b1 \&MirBSD\\*(aa
. as b1 \&\\*(tNMirBSD\\*(aa
. nR
. \}
. \}
..
.\}
.\" </MirCVS://contrib/samples/portmdoc>
.\"-
.ie \ng==1 \{\
. ds nc mircpio
Expand Down

0 comments on commit 6964496

Please sign in to comment.