Debian Codegraph @

debian/createmanpages

raw
1 #!/bin/sh
2 MANDIR=debian/mans
3 mkdir -p $MANDIR
4
5 VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
6
7 AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and
8 can be used for any other usage of the program.
9 "
10
11 progname=centrifuge
12 help2man --no-info --no-discard-stderr --help-option=" -h" \
13 --name='rapid and memory-efficient system for classification of DNA sequences' \
14 --version-string="$VERSION" /usr/bin/${progname} > $MANDIR/${progname}.1
15 echo $AUTHOR >> $MANDIR/${progname}.1
16
17 progname=centrifuge-build
18 help2man --no-info --no-discard-stderr --help-option=" -h" \
19 --name='building index on all complete bacterial and viral genomes' \
20 --version-string="$VERSION" /usr/bin/${progname} > $MANDIR/${progname}.1
21 echo $AUTHOR >> $MANDIR/${progname}.1
22
23 progname=centrifuge-compress
24 help2man --no-info --no-discard-stderr --help-option=" " \
25 --name='genome compression in the database construction' \
26 --version-string="$VERSION" /usr/bin/${progname} \
27 | sed 's/USAGE: perl centrifuge\\-compress.pl/centrifuge\-compress/' > $MANDIR/${progname}.1
28 echo $AUTHOR >> $MANDIR/${progname}.1
29
30 progname=centrifuge-download
31 help2man --no-info --no-discard-stderr --help-option=" " \
32 --name='centrifuge helper to download databases' \
33 --version-string="$VERSION" /usr/bin/${progname} > $MANDIR/${progname}.1
34 echo $AUTHOR >> $MANDIR/${progname}.1
35
36 progname=centrifuge-inspect
37 help2man --no-info --discard-stderr --help-option=" -h" \
38 --name='inspecting the centrifuge index' \
39 --version-string="$VERSION" /usr/bin/${progname} > $MANDIR/${progname}.1
40 echo $AUTHOR >> $MANDIR/${progname}.1
41
42 cat <<EOT
43 Please enhance the help2man output.
44 The following web page might be helpful in doing so:
45 http://liw.fi/manpages/
46 EOT
47