1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/bin/sh
MANDIR=debian/mans
mkdir -p $MANDIR
VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
NAME=`grep "^Description:" debian/control | sed 's/^Description: *//' | head -n1`
PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and
can be used for any other usage of the program.
"
progname=${PROGNAME}
help2man --no-info --no-discard-stderr --help-option="--help" \
--name='assigning taxonomic labels to short DNA sequences' \
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
echo $AUTHOR >> $MANDIR/${progname}.1
help2man --no-info --no-discard-stderr --help-option="--help" \
--name='assigning taxonomic labels to short DNA sequences' \
--version-string="$VERSION" ${progname}-build > $MANDIR/${progname}-build.1
echo $AUTHOR >> $MANDIR/${progname}-build.1
help2man --no-info --no-discard-stderr --help-option="--help" \
--name='allows users to gain information about the content of a Kraken 2 database' \
--version-string="$VERSION" ${progname}-inspect > $MANDIR/${progname}-inspect.1
echo $AUTHOR >> $MANDIR/${progname}-inspect.1
echo "$MANDIR/*.1" > debian/manpages
cat <<EOT
Please enhance the help2man output.
The following web page might be helpful in doing so:
http://liw.fi/manpages/
EOT
|