| 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 |
NAME=`grep "^Description:" debian/control | sed 's/^Description: *//'` |
| 7 |
PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//'` |
| 8 |
|
| 9 |
AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and |
| 10 |
can be used for any other usage of the program. |
| 11 |
" |
| 12 |
|
| 13 |
# If program name is different from package name or title should be |
| 14 |
# different from package short description change this here |
| 15 |
progname=${PROGNAME} |
| 16 |
help2man --no-info --no-discard-stderr --help-option=" " \ |
| 17 |
--name="$NAME" \ |
| 18 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 19 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 20 |
|
| 21 |
progname=ezmsim |
| 22 |
help2man --no-info --no-discard-stderr --help-option=" " \ |
| 23 |
--name="simulate enzyme cut assembly sequences" \ |
| 24 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 25 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 26 |
|
| 27 |
progname=rbasm |
| 28 |
help2man --no-info --no-discard-stderr --help-option=" -h" \ |
| 29 |
--name="local assemble fragments around restriction sites" \ |
| 30 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 31 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 32 |
|
| 33 |
progname=select_all_rbcontig.pl |
| 34 |
help2man --no-info --no-discard-stderr --help-option=" " \ |
| 35 |
--name="select all rbcontig" \ |
| 36 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 37 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 38 |
|
| 39 |
progname=select_best_rbcontig.pl |
| 40 |
help2man --no-info --no-discard-stderr --help-option=" " \ |
| 41 |
--name="select best rbcontig" \ |
| 42 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 43 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 44 |
|
| 45 |
progname=select_best_rbcontig_plus_read1.pl |
| 46 |
help2man --no-info --no-discard-stderr --help-option=" " \ |
| 47 |
--name="select best rbcontig plus read1" \ |
| 48 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 49 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 50 |
|
| 51 |
progname=select_sec_rbcontig.pl |
| 52 |
help2man --no-info --no-discard-stderr --help-option=" " \ |
| 53 |
--name="select second rbcontig" \ |
| 54 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 55 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 56 |
|
| 57 |
echo "$MANDIR/*.1" > debian/manpages |
| 58 |
|
| 59 |
cat <<EOT |
| 60 |
Please enhance the help2man output. |
| 61 |
The following web page might be helpful in doing so: |
| 62 |
http://liw.fi/manpages/ |
| 63 |
EOT |