ovsdb-doc: Include schema version in generated man pages.
authorJustin Pettit <jpettit@nicira.com>
Wed, 26 Feb 2014 21:50:47 +0000 (13:50 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 28 Feb 2014 21:18:26 +0000 (13:18 -0800)
Suggested-by: Bruce Davie <bdavie@vmware.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovsdb/ovsdb-doc

index 46f1101..6200915 100755 (executable)
@@ -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 = []