Codebase list ssshtest / 17d1b9e
Add manpages Nilesh Patra 3 years ago
3 changed file(s) with 45 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/sh
1 MANDIR=debian
2 mkdir -p $MANDIR
3
4 VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
5 NAME=`grep "^Description:" debian/control | sed 's/^Description: *//' | head -n1`
6 PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
7
8 AUTHOR=".SH AUTHOR\n \
9 This manpage was written by $DEBFULLNAME for the Debian distribution and\n \
10 can be used for any other usage of the program.\
11 "
12
13 # If program name is different from package name or title should be
14 # different from package short description change this here
15 progname=${PROGNAME}
16 help2man --no-info --no-discard-stderr --help-option="-h 2>/dev/null" \
17 --name="$NAME" \
18 --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
19 echo $AUTHOR >> $MANDIR/${progname}.1
20
21 echo "$MANDIR/*.1" > debian/manpages
22
23 cat <<EOT
24 Please enhance the help2man output.
25 The following web page might be helpful in doing so:
26 http://liw.fi/manpages/
27 EOT
0 debian/*.1
0 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
1 .TH SSSHTEST "1" "March 2021" "ssshtest 0.0+git20190416.6f5438a" "User Commands"
2 .SH NAME
3 ssshtest \- stupid simple (ba)sh testing
4 .SH DESCRIPTION
5 usage: \fI\,/usr/bin/ssshtest\/\fP OPTIONS
6 .SS "OPTIONS can be:"
7 .TP
8 \fB\-h\fR
9 Show this message
10 .TP
11 \fB\-v\fR
12 Print success messages
13 .SH AUTHOR
14 This manpage was written by Nilesh Patra for the Debian distribution and
15 can be used for any other usage of the program.