[ovs-dev] [PATCH 2/6] ovsdb-doc: Include schema version in generated man pages.
Justin Pettit
jpettit at nicira.com
Thu Feb 27 00:35:40 UTC 2014
Suggested-by: Bruce Davie <bdavie at vmware.com>
Signed-off-by: Justin Pettit <jpettit at nicira.com>
---
ovsdb/ovsdb-doc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc
index 46f1101..6200915 100755
--- a/ovsdb/ovsdb-doc
+++ b/ovsdb/ovsdb-doc
@@ -270,7 +270,7 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None, version=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 "%s" 5 " DB Schema %s" "Open vSwitch %s" "Open vSwitch Manual"
.\" -*- nroff -*-
.de TQ
. br
@@ -286,7 +286,7 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None, version=None):
.SH NAME
%s \- %s database schema
.PP
-''' % (title, version, textToNroff(schema.name), schema.name)
+''' % (title, schema.version, version, textToNroff(schema.name), schema.name)
tables = ""
introNodes = []
--
1.7.5.4
More information about the dev
mailing list