From: Roland Kammerer <roland.kammerer@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] drbdmanage lintian warnings
Date: Mon, 11 May 2015 12:07:35 +0200 [thread overview]
Message-ID: <20150511100735.GY1968@rck.sh> (raw)
In-Reply-To: <20150511092206.GX1968@rck.sh>
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
On Mon, May 11, 2015 at 11:22:06AM +0200, Roland Kammerer wrote:
> Patches welcome. ;-)
See attached patch. It fixes the bulk of the lintian warnings. There are
still some other unrelated manpage errors left that would need a closer
look (e.g. command string too long).
Regards, rck
[-- Attachment #2: 0001-man-pages-Fixed-some-lintian-warnings.patch --]
[-- Type: text/x-diff, Size: 1449 bytes --]
From 88ef35ee774bf66184937c68de5a373a352d7e6e Mon Sep 17 00:00:00 2001
From: Roland Kammerer <roland.kammerer@linbit.com>
Date: Mon, 11 May 2015 11:53:16 +0200
Subject: [PATCH] man-pages: Fixed some lintian warnings
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
next prev parent reply other threads:[~2015-05-11 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 8:54 [Drbd-dev] drbdmanage lintian warnings Dietmar Maurer
2015-05-11 9:22 ` Roland Kammerer
2015-05-11 10:07 ` Roland Kammerer [this message]
2015-05-12 4:36 ` Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150511100735.GY1968@rck.sh \
--to=roland.kammerer@linbit.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.