#!/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\n \ This manpage was written by $DEBFULLNAME for the Debian distribution and\n \ can be used for any other usage of the program.\ " # If program name is different from package name or title should be # different from package short description change this here progname=dnapi.py help2man --no-info --no-discard-stderr --help-option=" -h" \ --name="Predict or evaluate 3'adapter sequence(s)" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=qual_offset.py help2man --no-info --no-discard-stderr --help-option=" -h" \ --name="Estimate quality score encoding" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=qual_trim.py help2man --no-info --no-discard-stderr --help-option=" -h" \ --name="Perform quality trimming for single-end reads." \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=to_fasta.py help2man --no-info --no-discard-stderr --help-option=" -h" \ --name="Remove adapters and collapse reads from FASTQ to FASTA" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 echo "$MANDIR/*.1" > debian/manpages cat <