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, 12 Mar 2012 17:13:37 +0000 (10:13 -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 8f725d7901155f2f069151973cc7ea6878d635a8..5ae6706e570542242a8f827fba9d0378e6820bb4 100755 (executable)
@@ -275,9 +275,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 = []