From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Mon, 28 Nov 2011 12:20:34 +0100 Subject: [Cluster-devel] [PATCH] fence_rackswitch: Add metadata output for fence_rackswitch agent In-Reply-To: <1322478434-22302-1-git-send-email-mgrac@redhat.com> References: <1322478434-22302-1-git-send-email-mgrac@redhat.com> Message-ID: <4ED36E82.3060302@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 11/28/2011 12:07 PM, Marek 'marx' Grac wrote: > Adding this feature allow us to generate manual pages directly from XML, > so both GUI tools and manual pages can see same feature. > > Resolves: rhbz#714841 (partial) > --- > fence/agents/rackswitch/Makefile.am | 8 +++ > fence/agents/rackswitch/do_rack.c | 46 ++++++++++++++++++- > fence/agents/rackswitch/fence_rackswitch.8 | 70 ---------------------------- > 3 files changed, 53 insertions(+), 71 deletions(-) > delete mode 100644 fence/agents/rackswitch/fence_rackswitch.8 > > diff --git a/fence/agents/rackswitch/Makefile.am b/fence/agents/rackswitch/Makefile.am > index 29cbef8..b6369e4 100644 > --- a/fence/agents/rackswitch/Makefile.am > +++ b/fence/agents/rackswitch/Makefile.am > @@ -9,3 +9,11 @@ noinst_HEADERS = do_rack.h > fence_rackswitch_SOURCES = do_rack.c > > dist_man_MANS = $(TARGET).8 > + > +fence_rackswitch.8: fence_rackswitch $(top_srcdir)/fence/agents/lib/fence2man.xsl > + set -e && \ > + ./$^ -o metadata > .$@.tmp && \ > + xsltproc $(top_srcdir)/fence/agents/lib/fence2man.xsl .$@.tmp > $@ IIRC fence_ipmilan has something similar too. Please make it a .mk snippet and remove the hardcoded rule. Fabio