| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | MANDIR=debian/mans |
| 3 | mkdirscip-shell system . . mkdir. -p $MANDIR |
| 4 | |
| 5 | VERSION=`dpkg-parsechangelogscip-shell system . . dpkg-parsechangelog. | awkscip-shell system . . awk. '/^Version:/ {print $2}scip-shell filesystem . . `/^Version:/ {print $2}`.' | sedscip-shell system . . sed. -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'` |
| 6 | NAME=`grepscip-shell system . . grep. "^Description:" debian/control | sedscip-shell system . . sed. 's/^Description: *//' | headscip-shell system . . head. -n1` |
| 7 | PROGNAME=`grepscip-shell system . . grep. "^Package:" debian/control | sedscip-shell system . . sed. 's/^Package: *//' | headscip-shell system . . head. -n1` |
| 8 | |
| 9 | AUTHOR=".SH AUTHOR\n \ |
| 10 | This manpage was written by $DEBFULLNAME for the Debian distribution and\n \ |
| 11 | can be used for any other usage of the program.\ |
| 12 | " |
| 13 | |
| 14 | # If program name is different from package name or title should be |
| 15 | # different from package short description change this here |
| 16 | progname=dnapi.py |
| 17 | help2man --no-info --no-discard-stderr --help-option=" -h" \ |
| 18 | --name="Predict or evaluate 3'adapter sequence(s)" \ |
| 19 | --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 20 | echoscip-shell system . . echo. $AUTHOR >> $MANDIR/${progname}.1 |
| 21 | |
| 22 | progname=qual_offset.py |
| 23 | help2man --no-info --no-discard-stderr --help-option=" -h" \ |
| 24 | --name="Estimate quality score encoding" \ |
| 25 | --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 26 | echoscip-shell system . . echo. $AUTHOR >> $MANDIR/${progname}.1 |
| 27 | |
| 28 | progname=qual_trim.py |
| 29 | help2man --no-info --no-discard-stderr --help-option=" -h" \ |
| 30 | --name="Perform quality trimming for single-end reads." \ |
| 31 | --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 32 | echoscip-shell system . . echo. $AUTHOR >> $MANDIR/${progname}.1 |
| 33 | |
| 34 | progname=to_fasta.py |
| 35 | help2man --no-info --no-discard-stderr --help-option=" -h" \ |
| 36 | --name="Remove adapters and collapse reads from FASTQ to FASTA" \ |
| 37 | --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 38 | echoscip-shell system . . echo. $AUTHOR >> $MANDIR/${progname}.1 |
| 39 | |
| 40 | echoscip-shell system . . echo. "$MANDIR/*.1" > debian/manpages |
| 41 | |
| 42 | catscip-shell system . . 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 |