fence_rackswitch: Add metadata output for fence_rackswitch agent
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
|