Updated patch below, now using *.x files. /Simon
>From 21a5784472515088ca5c3d1d13e390861be06d30 Mon Sep 17 00:00:00 2001 From: Simon Josefsson <[email protected]> Date: Fri, 4 Dec 2009 12:59:24 +0100 Subject: [PATCH] Add man pages. --- Makefile.am | 2 +- configure.ac | 2 ++ man/Makefile.am | 39 +++++++++++++++++++++++++++++++++++++++ man/rshd.x | 4 ++++ man/telnet.x | 4 ++++ man/telnetd.x | 4 ++++ 6 files changed, 54 insertions(+), 1 deletions(-) create mode 100644 man/Makefile.am create mode 100644 man/rshd.x create mode 100644 man/telnet.x create mode 100644 man/telnetd.x diff --git a/Makefile.am b/Makefile.am index 5c9f40c..72437dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,7 +26,7 @@ EXTRA_DIST = README-alpha paths ChangeLog.0 SUBDIRS = lib headers libinetutils libtelnet \ hostname inetd telnetd libls ftpd rshd rlogind uucpd rexecd syslogd \ tftpd talkd telnet ftp rsh rcp rlogin tftp logger whois talk \ - libicmp ping doc ifconfig traceroute rexec tests + libicmp ping doc ifconfig traceroute rexec tests man DISTCLEANFILES = pathdefs.make paths.defs diff --git a/configure.ac b/configure.ac index ef9efe0..5d5ffa4 100644 --- a/configure.ac +++ b/configure.ac @@ -128,6 +128,7 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_RANLIB AC_PROG_YACC +AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) gl_INIT @@ -840,6 +841,7 @@ traceroute/Makefile confpaths.h:confpaths.h.in headers/Makefile doc/Makefile +man/Makefile tests/Makefile ]) AC_OUTPUT diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..61235ed --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,39 @@ +# +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is part of GNU Inetutils. +# +# GNU Inetutils is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. +# +# GNU Inetutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see `http://www.gnu.org/licenses/'. + +dist_man1_MANS = telnet.1 telnetd.1 rshd.1 + +man_aux = $(dist_man1_MANS:.1=.x) +EXTRA_DIST = $(man_aux) + +MAINTAINERCLEANFILES = $(dist_man1_MANS) + +telnet.1: telnet.x $(top_srcdir)/telnet/main.c $(top_srcdir)/configure.ac + $(HELP2MAN) \ + --include=telnet.x \ + --output=$@ $(top_builddir)/telnet/telnet$(EXEEXT) + +telnetd.1: telnetd.x $(top_srcdir)/telnetd/telnetd.c $(top_srcdir)/configure.ac + $(HELP2MAN) \ + --include=telnetd.x \ + --output=$@ $(top_builddir)/telnetd/telnetd$(EXEEXT) + +rshd.1: rshd.x $(top_srcdir)/rshd/rshd.c $(top_srcdir)/configure.ac + $(HELP2MAN) \ + --include=rshd.x \ + --output=$@ $(top_builddir)/rshd/rshd$(EXEEXT) diff --git a/man/rshd.x b/man/rshd.x new file mode 100644 index 0000000..c3dfb66 --- /dev/null +++ b/man/rshd.x @@ -0,0 +1,4 @@ +[NAME] +rshd \- Remote shell server +[SEE ALSO] +rsh(1) diff --git a/man/telnet.x b/man/telnet.x new file mode 100644 index 0000000..1abcd29 --- /dev/null +++ b/man/telnet.x @@ -0,0 +1,4 @@ +[NAME] +telnet \- User interface to TELNET +[SEE ALSO] +telnetd(1) diff --git a/man/telnetd.x b/man/telnetd.x new file mode 100644 index 0000000..d9ead50 --- /dev/null +++ b/man/telnetd.x @@ -0,0 +1,4 @@ +[NAME] +telnetd \- Telnet server +[SEE ALSO] +telnet(1) -- 1.6.5.3
