bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] Re: inetutils release...


From: Simon Josefsson
Subject: [bug-inetutils] Re: inetutils release...
Date: Fri, 04 Dec 2009 10:09:54 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> I volunteer to work on adding help2man rules

Here is a starting pointer for review.  I know ChangeLog entries are
missing (and I just noticed I did a bit too much cut'n'paste from
coreutils in the license header).  Thoughts?  If there are no reactions
I'll go ahead and push this later today, with ChangeLog entries plus
rules for the other tools too.

/Simon

>From 6e347a324321f5fb1bea6b8cc2cbc43e3dc7985b Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Fri, 4 Dec 2009 10:07:51 +0100
Subject: [PATCH] Add man pages.

---
 Makefile.am     |    2 +-
 configure.ac    |    2 ++
 man/Makefile.am |   35 +++++++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 1 deletions(-)
 create mode 100644 man/Makefile.am

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..f560a37
--- /dev/null
+++ b/man/Makefile.am
@@ -0,0 +1,35 @@
+# Make coreutils man pages.                            -*-Makefile-*-
+
+# Copyright (C) 2002-2009 Free Software Foundation, Inc.
+
+# This program 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.
+
+# This program 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 = $(MAN)
+
+MAINTAINERCLEANFILES = $(dist_man1_MANS)
+
+telnet.1: $(top_srcdir)/telnet/main.c $(top_srcdir)/configure.ac
+       $(HELP2MAN) \
+               --name="User interface to TELNET" \
+               --output=$@ $(top_builddir)/telnet/telnet$(EXEEXT)
+
+telnetd.1: $(top_srcdir)/telnet/telnetd.c $(top_srcdir)/configure.ac
+       $(HELP2MAN) \
+               --name="Telnet server" \
+               --output=$@ $(top_builddir)/telnetd/telnetd$(EXEEXT)
+
+rshd.1: $(top_srcdir)/rshd/rshd.c $(top_srcdir)/configure.ac
+       $(HELP2MAN) \
+               --name="Remote shell server" \
+               --output=$@ $(top_builddir)/rshd/rshd$(EXEEXT)
-- 
1.6.5.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]