#!/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: *//'` PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//'` AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and 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=${PROGNAME} help2man --no-info --no-discard-stderr --help-option=" " \ --name="$NAME" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=ezmsim help2man --no-info --no-discard-stderr --help-option=" " \ --name="simulate enzyme cut assembly sequences" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=rbasm help2man --no-info --no-discard-stderr --help-option=" -h" \ --name="local assemble fragments around restriction sites" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=select_all_rbcontig.pl help2man --no-info --no-discard-stderr --help-option=" " \ --name="select all rbcontig" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=select_best_rbcontig.pl help2man --no-info --no-discard-stderr --help-option=" " \ --name="select best rbcontig" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=select_best_rbcontig_plus_read1.pl help2man --no-info --no-discard-stderr --help-option=" " \ --name="select best rbcontig plus read1" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 progname=select_sec_rbcontig.pl help2man --no-info --no-discard-stderr --help-option=" " \ --name="select second rbcontig" \ --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 echo $AUTHOR >> $MANDIR/${progname}.1 echo "$MANDIR/*.1" > debian/manpages cat <