ovsdb-doc: Put NAME section into generated manpage.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Mar 2012 22:37:31 +0000 (14:37 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 19 Mar 2012 17:25:22 +0000 (10:25 -0700)
This makes the manpage indexable by standard system tools.

Found by lintian.

Reported-by: Thomas Goirand <zigo@debian.org>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovsdb/ovsdb-doc.in

index 53292b3..8e0e171 100755 (executable)
@@ -270,9 +270,9 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None):
 .  I "\\$1"
 .  RE
 ..
-''' % (title, d.strftime("%B %Y"))
-
-    s += '.SH "%s DATABASE"\n' % schema.name
+.SH NAME
+%s \- %s database schema
+''' % (title, d.strftime("%B %Y"), textToNroff(title), schema.name)
 
     tables = ""
     introNodes = []