Debian Codegraph @

debian/createmanpages

raw
1 #!/bin/sh
2 MANDIR=debian
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=bamleftalign
12 help2man --no-info --no-discard-stderr \
13 --name='<optional description of the program>' \
14 --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
15 echo $AUTHOR >> $MANDIR/${progname}.1
16
17 progname=freebayes
18 help2man --no-info --no-discard-stderr --help-option=" " \
19 --name='<optional description of the program>' \
20 --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
21 echo $AUTHOR >> $MANDIR/${progname}.1
22
23 cat <<EOT
24 Please enhance the help2man output.
25 The following web page might be helpful in doing so:
26 http://liw.fi/manpages/
27 EOT
28