summaryrefslogtreecommitdiff
path: root/qpid/cpp/man
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-08 12:53:21 +0000
committerGordon Sim <gsim@apache.org>2006-12-08 12:53:21 +0000
commita07c0fedb38be87ccf6d28059c1414e81e270c1b (patch)
tree4a98ee0c19c1ea90bb9fbe9f83dc249e4906f201 /qpid/cpp/man
parent1ae8e45eb9c80748fc431bb74ccaad4d696c1b74 (diff)
downloadqpid-python-a07c0fedb38be87ccf6d28059c1414e81e270c1b.tar.gz
Patch submitted to dev:
2006-12-08 Jim Meyering <meyering@redhat.com> 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@483973 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/man')
-rw-r--r--qpid/cpp/man/Makefile.am18
-rw-r--r--qpid/cpp/man/qpidd.x5
2 files changed, 23 insertions, 0 deletions
diff --git a/qpid/cpp/man/Makefile.am b/qpid/cpp/man/Makefile.am
new file mode 100644
index 0000000000..392633251e
--- /dev/null
+++ b/qpid/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/qpid/cpp/man/qpidd.x b/qpid/cpp/man/qpidd.x
new file mode 100644
index 0000000000..e60505cc9c
--- /dev/null
+++ b/qpid/cpp/man/qpidd.x
@@ -0,0 +1,5 @@
+[NAME]
+qpidd \- the Qpid broker daemon
+
+[DESCRIPTION]
+.\" Add any additional description here