First set of manpage markup fixes
Subsystems (2)
Enclosed patch fixes inappropriate uses of the .SS macro. Fuller explanation in the change comment.
There are other problems in these pages that block lifting to XML-DocBook, most notably in the command synopses. They will take some creativity to fix. I'm working on it
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Quoted 1 line
From
75745adba4b45b87577b61a2daa886dd444f44daMon Sep 17 00:00:00 2001
From: "Eric S. Raymond" <[email protected]>
Date: Fri, 21 Jun 2013 15:27:38 -0400
Subject: [PATCH] Abolish presentation-level misuse of the .SS macro.
This change fixes most (but not all) fatal errors in attempts to lift the iproute2 manual pages to XML-DocBook. Where .SS is still used it is a real subsection header, not just a way to outdent and bold text. Presentation-level instances are turned into .TP calls and tables.
--- man/man8/ip-maddress.8 | 11 ++++++--- man/man8/ip-neighbour.8 | 49 +++++++++++++++++++++++----------------- man/man8/ip-netns.8 | 35 +++++++++++++++++------------ man/man8/ip-route.8.in | 56 +++++++++++++++++++++++++++++++++++----------- man/man8/ip-tunnel.8 | 26 ++++++++++++++++------ man/man8/ip-xfrm.8 | 59 +++++++++++++++++++++---------------------------- 6 files changed, 145 insertions(+), 91 deletions(-)
man/man8/ip-maddress.8 +8 -3
@@ -31,13 +31,17 @@ objects are multicast addresses. .BI dev " NAME " (default) the device name. -.SS ip maddress add - add a multicast address -.SS ip maddress delete - delete a multicast address -these commands attach/detach a static link-layer multicast address +.TP +.B ip maddress add - add a multicast address +.TP +.B ip maddress delete - delete a multicast address +.sp +These commands attach/detach a static link-layer multicast address to listen on the interface. Note that it is impossible to join protocol multicast groups statically. This command only manages link-layer addresses. +.RS .TP .BI address " LLADDRESS " (default) the link-layer multicast address.
@@ -45,6 +49,7 @@ the link-layer multicast address. .TP .BI dev " NAME" the device to join/leave this multicast address. +.RE .SH SEE ALSO .br
man/man8/ip-neighbour.8 +29 -20
86 lines not on this page · raw message
man/man8/ip-netns.8 +21 -14
@@ -64,35 +64,41 @@ namespace unaware applications, by creating a mount namespace and bind mounting all of the per network namespace configure files into their traditional location in /etc. -.SS ip netns list - show all of the named network namespaces - +.TP +.B ip netns list - show all of the named network namespaces +.sp This command displays all of the network namespaces in /var/run/netns -.SS ip netns add NAME - create a new named network namespace - +.TP +.B ip netns add NAME - create a new named network namespace +.sp If NAME is available in /var/run/netns/ this command creates a new network namespace and assigns NAME. -.SS ip netns delete NAME - delete the name of a network namespace - +.TP +.B ip netns delete NAME - delete the name of a network namespace +.sp If NAME is present in /var/run/netns it is umounted and the mount point is removed. If this is the last user of the network namespace the network namespace will be freed, otherwise the network namespace persists until it has no more users. ip netns delete may fail if the mount point is in use in another mount namespace. -.SS ip netns identify PID - Report network namespaces names for process - +.TP +.B ip netns identify PID - Report network namespaces names for process +.sp This command walks through /var/run/netns and finds all the network namespace names for network namespace of the specified process. -.SS ip netns pids NAME - Report processes in the named network namespace - +.TP +.B ip netns pids NAME - Report processes in the named network namespace +.sp This command walks through proc and finds all of the process who have the named network namespace as their primary network namespace. -.SS ip netns exec NAME cmd ... - Run cmd in the named network namespace - +.TP +.B ip netns exec NAME cmd ... - Run cmd in the named network namespace +.sp This command allows applications that are network namespace unaware to be run in something other than the default network namespace with all of the configuration for the specified network namespace appearing
@@ -100,8 +106,9 @@ in the customary global locations. A network namespace and bind mounts are used to move files from their network namespace specific location to their default locations without affecting other processes. -.SS ip netns monitor - Report as network namespace names are added and deleted - +.TP +.B ip netns monitor - Report as network namespace names are added and deleted +.sp This command watches network namespace name addition and deletion events and prints a line for each event it sees.
man/man8/ip-route.8.in +43 -13
107 lines not on this page · raw message
man/man8/ip-tunnel.8 +19 -7
@@ -88,10 +88,16 @@ The encapsulating (or outer) address family is specified by the .B -f option. The default is IPv4. -.SS ip tunnel add - add a new tunnel -.SS ip tunnel change - change an existing tunnel -.SS ip tunnel delete - destroy a tunnel - +.TP +.B ip tunnel add +add a new tunnel +.TP +.B ip tunnel change +change an existing tunnel +.TP +.B ip tunnel delete +destroy a tunnel +.RS .TP .BI name " NAME " (default) select the tunnel device name.
@@ -223,9 +229,12 @@ set a fixed encapsulation limit. Default is 4. .BI flowlabel " FLOWLABEL" .RB ( " only IPv6 tunnels " ) set a fixed flowlabel. +.RE -.SS ip tunnel prl - potential router list (ISATAP only) - +.TP +.B ip tunnel prl +potential router list (ISATAP only) +.RS .TP .BI dev " NAME" mandatory device name.
@@ -238,8 +247,11 @@ mandatory device name. .BI prl-delete " ADDR" .RB "Add or delete " ADDR as a potential router or default router. +.RE -.SS ip tunnel show - list tunnels +.TP +.B ip tunnel show +list tunnels This command has no arguments. .SH SEE ALSO
man/man8/ip-xfrm.8 +25 -34
77 lines not on this page · raw message
Signature · 1 line
1.8.0.1.g2b06c9a
Stephen Hemminger
AppliedQuoted 6 lines · On Fri, 21 Jun 2013 15:57:21 -0400 "Eric S. Raymond" <[email protected]> wrote:
Enclosed patch fixes inappropriate uses of the .SS macro. Fuller explanation in the change comment.
There are other problems in these pages that block lifting to XML-DocBook, most notably in the command synopses. They will take some creativity to fix. I'm working on it
Applied