Skip to contentSkip to conversation

fence_rackswitch: Add metadata output for fence_rackswitch agent

PATCH New Marek 'marx' Grac 2 participants 2 messages Nov 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fence_rackswitch: Add metadata output for fence_rackswitch agent

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
fence/agents/rackswitch/Makefile.am +8 -0
index 29cbef8..b6369e4 100644
@@ -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 > [email protected] && \
+	xsltproc $(top_srcdir)/fence/agents/lib/fence2man.xsl [email protected] > $@
+
+clean-local:
+	rm -f *.8 .*.8.tmp
\ No newline at end of file
fence/agents/rackswitch/do_rack.c +45 -1

64 lines not on this page · raw message

fence/agents/rackswitch/fence_rackswitch.8 deleted +0 -70

70 lines not on this page · raw message

Signature · 1 line
1.7.4.4
#1 lore raw

PATCH 1/1 fence_rackswitch: Add metadata output for fence_rackswitch agent

Quoted 16 lines · Marek 'marx' Grac

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
fence/agents/rackswitch/Makefile.am +0 -0
index 29cbef8..b6369e4 100644

fence/agents/rackswitch/Makefile.am noinst_HEADERS = do_rack.h · line 16

Quoted 8 lines
fence/agents/rackswitch/Makefile.am +5 -0
@@ -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 > [email protected] && \
+	xsltproc $(top_srcdir)/fence/agents/lib/fence2man.xsl [email protected] > $@

IIRC fence_ipmilan has something similar too.

Please make it a .mk snippet and remove the hardcoded rule.

Fabio