[med-svn] [fastaq] 01/02: handle python module paths in manpage generation
Sascha Steinbiss
sascha-guest at moszumanska.debian.org
Sat Aug 22 00:18:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository fastaq.
commit d6202c57e1d082fec514cd650d929772cc59c317
Author: Sascha Steinbiss <sascha at steinbiss.name>
Date: Sat Aug 22 00:07:42 2015 +0000
handle python module paths in manpage generation
---
debian/make_man | 8 ++------
debian/rules | 7 ++++++-
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/debian/make_man b/debian/make_man
old mode 100644
new mode 100755
index 5487e23..f9c0ea1
--- a/debian/make_man
+++ b/debian/make_man
@@ -1,16 +1,12 @@
#!/usr/bin/perl
-use strict;
-use warnings;
-mkdir('debian/man');
-`help2man -N -o debian/man/fastaq.1 -n 'FASTA and FASTQ file manipulation tools' --no-discard-stderr --version-string=3.6.1 scripts/fastaq`;
-`sed -i 's/.SH DESCRIPTION/.SH DESCRIPTION\\n.nf/' debian/man/fastaq.1 `;
+my $v = `PYTHONPATH=. scripts/fastaq version`;
while(<>) {
chomp;
my ($name, $desc) = split(/\s{2,}/);
my $uname = uc($name);
- `help2man -N -o debian/man/fastaq-$name.1 -n '$desc' --version-string=3.6.1 'scripts/fastaq $name'`;
+ `PYTHONPATH=. help2man -N -o ./debian/man/fastaq-$name.1 -n '$desc' --version-string='$v' 'scripts/fastaq $name'`;
`sed -i 's/.TH FASTAQ /.TH FASTAQ-$uname /' debian/man/fastaq-$name.1`;
`sed -i 's/fastaq $name/fastaq_$name/' debian/man/fastaq-$name.1`;
}
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 013ee91..3894e8a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,5 +22,10 @@ override_dh_auto_clean:
override_dh_installman:
mkdir -p $(mandir)
- scripts/fastaq 2>&1 | tail -n +13 | perl debian/make_man
+ PYTHONPATH=. help2man -N -o debian/man/fastaq.1 \
+ -n 'FASTA and FASTQ file manipulation tools' \
+ --no-discard-stderr \
+ --version-string=`PYTHONPATH=. scripts/fastaq version` scripts/fastaq
+ sed -i 's/.SH DESCRIPTION/.SH DESCRIPTION\\n.nf/' debian/man/fastaq.1
+ scripts/fastaq 2>&1 | tail -n +13 | debian/make_man
dh_installman --
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/fastaq.git
More information about the debian-med-commit
mailing list