[PATCH] man-pages: Fixed some lintian warnings

Roland Kammerer roland.kammerer at linbit.com
Mon May 11 11:53:16 CEST 2015


This fixes the "manpage-has-bad-wahtis-entry" warnings.
---
 setup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 900f9c9..d8faa99 100755
--- a/setup.py
+++ b/setup.py
@@ -98,7 +98,7 @@ class BuildManCommand(Command):
             if os.path.isfile(outfile):
                 continue
             print "Generating %s ..." % (outfile)
-            mangen = ["help2man", "-n", toplevel, '-s', '8',
+            mangen = ["help2man", "-n", toplevel, '-s', mansection,
                       '--version-string=%s' % (get_version()), "-N",
                       '"./drbdmanage_client.py %s"' % (toplevel)]
 
@@ -106,6 +106,9 @@ class BuildManCommand(Command):
             manpage = subprocess.check_output(toexec, shell=True)
             manpage = manpage.replace(replace[0], replace[1])
             manpage = manpage.replace(replace[0].upper(), replace[1].upper())
+            manpage = manpage.replace(toplevel.upper(), mansection)
+            manpage = manpage.replace("%s %s" % (replace[1], toplevel),
+                                      "%s_%s" % (replace[1], toplevel))
             with gzip.open(outfile, 'wb') as f:
                 f.write(manpage)
 
-- 
2.1.4


--J/dobhs11T7y2rNN--


More information about the drbd-dev mailing list