You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2006/12/08 13:53:22 UTC

svn commit: r483973 - in /incubator/qpid/trunk/qpid/cpp: Makefile.am configure.ac man/ man/Makefile.am man/qpidd.x

Author: gsim
Date: Fri Dec  8 04:53:21 2006
New Revision: 483973

URL: http://svn.apache.org/viewvc?view=rev&rev=483973
Log:
Patch submitted to dev:

2006-12-08  Jim Meyering  <me...@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.


Added:
    incubator/qpid/trunk/qpid/cpp/man/
    incubator/qpid/trunk/qpid/cpp/man/Makefile.am
    incubator/qpid/trunk/qpid/cpp/man/qpidd.x
Modified:
    incubator/qpid/trunk/qpid/cpp/Makefile.am
    incubator/qpid/trunk/qpid/cpp/configure.ac

Modified: incubator/qpid/trunk/qpid/cpp/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/Makefile.am?view=diff&rev=483973&r1=483972&r2=483973
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/Makefile.am Fri Dec  8 04:53:21 2006
@@ -3,7 +3,7 @@
 
 EXTRA_DIST = README-dist DESIGN LICENSE.txt NOTICE.txt README.rhel3
 
-SUBDIRS = gen lib tests src docs/api
+SUBDIRS = gen lib tests src docs/api man
 
 # Update libtool, if needed.
 libtool: $(LIBTOOL_DEPS)

Modified: incubator/qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/configure.ac?view=diff&rev=483973&r1=483972&r2=483973
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/configure.ac (original)
+++ incubator/qpid/trunk/qpid/cpp/configure.ac Fri Dec  8 04:53:21 2006
@@ -25,6 +25,8 @@
 AC_PROG_CXX
 AC_USE_SYSTEM_EXTENSIONS
 
+AM_MISSING_PROG([HELP2MAN], [help2man])
+
 AC_ARG_ENABLE(warnings,
 [  --enable-warnings   turn on lots of compiler warnings (recommended)],
 [case "${enableval}" in
@@ -128,6 +130,7 @@
   lib/client/Makefile
   lib/broker/Makefile
   src/Makefile
+  man/Makefile
   tests/Makefile
   docs/api/Makefile
   ])

Added: incubator/qpid/trunk/qpid/cpp/man/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/man/Makefile.am?view=auto&rev=483973
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/man/Makefile.am (added)
+++ incubator/qpid/trunk/qpid/cpp/man/Makefile.am Fri Dec  8 04:53:21 2006
@@ -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 $@

Added: incubator/qpid/trunk/qpid/cpp/man/qpidd.x
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/man/qpidd.x?view=auto&rev=483973
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/man/qpidd.x (added)
+++ incubator/qpid/trunk/qpid/cpp/man/qpidd.x Fri Dec  8 04:53:21 2006
@@ -0,0 +1,5 @@
+[NAME]
+qpidd \- the Qpid broker daemon
+
+[DESCRIPTION]
+.\" Add any additional description here