File: createmanpages

package info (click to toggle)
transdecoder 5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 25,820 kB
  • sloc: perl: 7,689; python: 271; sh: 101; makefile: 62
file content (16 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
MANDIR=debian
mkdir -p $MANDIR

VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`

help2man --no-info --no-discard-stderr --help-option=" " \
         --name='<optional description of the program>' \
            --version-string="$VERSION" <programname> > $MANDIR/<programname>.1

cat <<EOT
Please enhance the help2man output.
The following web page might be helpful in doing so:
    http://liw.fi/manpages/
EOT