Skip to content

Commit

Permalink
manpages: Put version number instead of date at bottom of page.
Browse files Browse the repository at this point in the history
We're really good about keeping manpages up to date, but terrible at
updating the dates at the bottom of the manpages.  So, instead of using
manually updated dates, this commit switches to using automatically updated
version numbers.

We can only use automatically updated version numbers for manpages that
we preprocess, that is, the manpages whose sources end with ".in".  This
excludes a couple of manpages that don't actually get installed with OVS,
such as the manpages for ovs-ctl and ovsdb-idlc.  This commit doesn't
change those manpages.  It does change the ovs-bugtool manpage to one that
is preprocessed so that we can use the version there.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Ethan Jackson <[email protected]>
  • Loading branch information
blp committed Jan 4, 2013
1 parent 0d8e963 commit d2cb6c9
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion ovsdb/ovsdb-client.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
. IP "\\$1"
..
.\" -*- nroff -*-
.TH ovsdb\-client 1 "November 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovsdb\-client 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.\" This program's name:
.ds PN ovsdb\-client
.\" SSL peer program's name:
Expand Down
4 changes: 2 additions & 2 deletions ovsdb/ovsdb-doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None):
# Putting '\" p as the first line tells "man" that the manpage
# needs to be preprocessed by "pic".
s = r''''\" p
.TH %s 5 "%s" "Open vSwitch" "Open vSwitch Manual"
.TH @VERSION@ 5 "%s" "Open vSwitch" "Open vSwitch Manual"
.\" -*- nroff -*-
.de TQ
. br
Expand All @@ -281,7 +281,7 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None):
.SH NAME
%s \- %s database schema
.PP
''' % (title, d.strftime("%B %Y"), textToNroff(title), schema.name)
''' % (title, textToNroff(title), schema.name)

tables = ""
introNodes = []
Expand Down
2 changes: 1 addition & 1 deletion ovsdb/ovsdb-server.1.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" -*- nroff -*-
.TH ovsdb\-server 1 "November 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovsdb\-server 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.\" This program's name:
.ds PN ovsdb\-server
.\" SSL peer program's name:
Expand Down
2 changes: 1 addition & 1 deletion ovsdb/ovsdb-tool.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
. IP "\\$1"
..
.\" -*- nroff -*-
.TH ovsdb\-tool 1 "November 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovsdb\-tool 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovsdb\-tool
.
.SH NAME
Expand Down
4 changes: 3 additions & 1 deletion utilities/bugtool/automake.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
if HAVE_PYTHON
sbin_SCRIPTS += utilities/bugtool/ovs-bugtool
CLEANFILES += utilities/bugtool/ovs-bugtool

man_MANS += utilities/bugtool/ovs-bugtool.8
MAN_ROOTS += utilities/bugtool/ovs-bugtool.8
MAN_ROOTS += utilities/bugtool/ovs-bugtool.8.in
DISTCLEANFILES += utilities/bugtool/ovs-ofctl.8

bugtool_plugins = \
utilities/bugtool/plugins/kernel-info/openvswitch.xml \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-bugtool 8 "June 2011" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-bugtool 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.\" This program's name:
.ds PN ovs\-bugtool
.
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-appctl.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-appctl 8 "November 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-appctl 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovs\-appctl
.
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-benchmark.1.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" -*- nroff -*-
.so lib/ovs.tmac
.TH ovs\-benchmark 1 "July 2011" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-benchmark 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.
.SH NAME
ovs\-benchmark \- flow setup benchmark utility for Open vSwitch
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-controller.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-controller 8 "March 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-controller 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovs\-controller
.
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-dpctl.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-dpctl 8 "August 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-dpctl 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovs\-dpctl
.
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-l3ping.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-l3ping 1 "June 2012" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-l3ping 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.
.SH NAME
\fBovs\-l3ping\fR \- check network deployment for L3 tunneling
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-ofctl.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-ofctl 8 "January 2011" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-ofctl 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovs\-ofctl
.
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-pcap.1.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH ovs\-pcap 1 "December 2010" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-pcap 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.
.SH NAME
ovs\-pcap \- print packets from a pcap file as hex
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-pki.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-pki 8 "May 2008" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-pki 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"

.SH NAME
ovs\-pki \- OpenFlow public key infrastructure management utility
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-tcpundump.1.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH ovs\-tcpundump 1 "December 2010" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-tcpundump 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.
.SH NAME
ovs\-tcpundump \- convert ``tcpdump \-xx'' output to hex strings
Expand Down
4 changes: 2 additions & 2 deletions utilities/ovs-test.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-test 1 "April 2012" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-test 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.
.SH NAME
\fBovs\-test\fR \- check Linux drivers for performance, vlan and L3 tunneling
Expand Down Expand Up @@ -141,4 +141,4 @@ GRE tests between both nodes:
.BR ovs\-vsctl (8),
.BR ovs\-vlan\-test (8),
.BR ethtool (8),
.BR uname (1)
.BR uname (1)
2 changes: 1 addition & 1 deletion utilities/ovs-vlan-bug-workaround.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-vlan\-bug\-workaround 8 "February 2011" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-vlan\-bug\-workaround 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovs\-vlan\-bug\-workaround
.
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-vlan-test.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-vlan\-test 1 "December 2010" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-vlan\-test 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.
.SH NAME
\fBovs\-vlan\-test\fR \- check Linux drivers for problems with vlan traffic
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-vsctl.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
. I "\\$1"
. RE
..
.TH ovs\-vsctl 8 "November 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-vsctl 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.\" This program's name:
.ds PN ovs\-vsctl
.\" SSL peer program's name:
Expand Down
2 changes: 1 addition & 1 deletion vswitchd/ovs-vswitchd.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
. ns
. IP "\\$1"
..
.TH ovs\-vswitchd 8 "June 2009" "Open vSwitch" "Open vSwitch Manual"
.TH ovs\-vswitchd 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
.\" This program's name:
.ds PN ovs\-vswitchd
.\" SSL peer program's name:
Expand Down

0 comments on commit d2cb6c9

Please sign in to comment.