Debian Codegraph @

debian/createmanpages

raw symbols SCIP
1 #!/bin/sh
2 MANDIR=debian/man
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: *//' | head -n1`
7 PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
8
9 # If program name is different from package name or title should be
10 # different from package short description change this here
11 progname=CAT_pack
12 help2man --no-info --no-discard-stderr --help-option=" -h" \
13 --name="$NAME" \
14 --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
15 echo $AUTHOR >> $MANDIR/${progname}.1
16
17 echo "$MANDIR/*.1" > debian/manpages
18
19 cat <<EOT
20 Please enhance the help2man output.
21 The following web page might be helpful in doing so:
22 http://liw.fi/manpages/
23 EOT