| 1 |
#!/bin/sh |
| 2 |
MANDIR=debian |
| 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 |
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=nib-conform |
| 17 |
help2man --no-info --no-discard-stderr --help-option="-h" \ |
| 18 |
--name="$NAME" \ |
| 19 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 20 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 21 |
|
| 22 |
echo "$MANDIR/*.1" > debian/manpages |
| 23 |
|
| 24 |
cat <<EOT |
| 25 |
Please enhance the help2man output. |
| 26 |
The following web page might be helpful in doing so: |
| 27 |
http://liw.fi/manpages/ |
| 28 |
EOT |
| 29 |
|
| 30 |
# If program name is different from package name or title should be |
| 31 |
# different from package short description change this here |
| 32 |
progname=nib-diff |
| 33 |
help2man --no-info --no-discard-stderr --help-option="-h" \ |
| 34 |
--name="$NAME" \ |
| 35 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 36 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 37 |
|
| 38 |
echo "$MANDIR/*.1" > debian/manpages |
| 39 |
|
| 40 |
cat <<EOT |
| 41 |
Please enhance the help2man output. |
| 42 |
The following web page might be helpful in doing so: |
| 43 |
http://liw.fi/manpages/ |
| 44 |
EOT |
| 45 |
|
| 46 |
# If program name is different from package name or title should be |
| 47 |
# different from package short description change this here |
| 48 |
progname=nib-tck2trk |
| 49 |
help2man --no-info --no-discard-stderr --help-option="-h" \ |
| 50 |
--name="$NAME" \ |
| 51 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 52 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 53 |
|
| 54 |
echo "$MANDIR/*.1" > debian/manpages |
| 55 |
|
| 56 |
cat <<EOT |
| 57 |
Please enhance the help2man output. |
| 58 |
The following web page might be helpful in doing so: |
| 59 |
http://liw.fi/manpages/ |
| 60 |
EOT |
| 61 |
|
| 62 |
# If program name is different from package name or title should be |
| 63 |
# different from package short description change this here |
| 64 |
progname=nib-trk2tck |
| 65 |
help2man --no-info --no-discard-stderr --help-option="-h" \ |
| 66 |
--name="$NAME" \ |
| 67 |
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1 |
| 68 |
echo $AUTHOR >> $MANDIR/${progname}.1 |
| 69 |
|
| 70 |
echo "$MANDIR/*.1" > debian/manpages |
| 71 |
|
| 72 |
cat <<EOT |
| 73 |
Please enhance the help2man output. |
| 74 |
The following web page might be helpful in doing so: |
| 75 |
http://liw.fi/manpages/ |
| 76 |
EOT |