From 276f0e0d44d79db49da7d37de8b1575e0c179bca Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 8 Dec 2006 12:53:21 +0000 Subject: Patch submitted to dev: 2006-12-08 Jim Meyering Automatically generate qpidd.1 from qpidd --help output. * Makefile.am (SUBDIRS): Add man. * configure.ac: Test for help2man. * man/qpidd.x: New file. * man/Makefile.am: New file. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483973 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/man/Makefile.am | 18 ++++++++++++++++++ cpp/man/qpidd.x | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 cpp/man/Makefile.am create mode 100644 cpp/man/qpidd.x (limited to 'cpp/man') diff --git a/cpp/man/Makefile.am b/cpp/man/Makefile.am new file mode 100644 index 0000000000..392633251e --- /dev/null +++ b/cpp/man/Makefile.am @@ -0,0 +1,18 @@ +dist_man_MANS = qpidd.1 + +man_aux = $(dist_man_MANS:.1=.x) $(optional_mans:.1=.x) +EXTRA_DIST = $(man_aux) $(optional_mans) +MAINTAINERCLEANFILES = $(dist_man_MANS) + +qpidd.1: $(srcdir)/qpidd.x $(top_srcdir)/src/qpidd.cpp + +# Depend on configure.ac to get version number changes. +$(dist_man_MANS): $(top_srcdir)/configure.ac + +SUFFIXES = .x .1 +.x.1: + @rm -f $@ + @echo "Updating man page $@" + $(HELP2MAN) --no-info --include=$(srcdir)/$*.x --output=$@-t ../src/$* + @chmod a-w $@-t + @mv $@-t $@ diff --git a/cpp/man/qpidd.x b/cpp/man/qpidd.x new file mode 100644 index 0000000000..e60505cc9c --- /dev/null +++ b/cpp/man/qpidd.x @@ -0,0 +1,5 @@ +[NAME] +qpidd \- the Qpid broker daemon + +[DESCRIPTION] +.\" Add any additional description here -- cgit v1.2.1