All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix "manpages: do not include v4-only modules in ip6tables manpage"
@ 2009-05-31 16:50 Florian Westphal
  2009-05-31 20:24 ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Westphal @ 2009-05-31 16:50 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

previous commit tries to skip v4-only module manpages
by searching for NFPROTO_IPV(4|6) -- in the man page itself.

Searching the .c file instead is not sufficient:
- there is at least one page (libxt_policy) without a libxt_*c
- there are targets/modules which use family AF_UNSPEC.

Signed-off-by: Florian Westphal <fw@strlen.de>
---
 extensions/GNUmakefile.in |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 8d7f21d..44a6d02 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -161,10 +161,13 @@ man_run    = \
 	${AM_VERBOSE_GEN} \
 	for ext in $(1); do \
 		f="${srcdir}/libxt_$$ext.man"; \
-		if [ -f "$$f" ] && grep -q "$(3)" "$$f"; then \
-			echo ".SS $$ext"; \
-			cat "$$f"; \
-			continue; \
+		if [ -f "$$f" ] ; then \
+			cfile="${srcdir}/libxt_$$ext.c"; \
+			if [ ! -f "$$cfile" ] || grep -q "\(_UNSPEC\|$(3)\)" "$$cfile"; then \
+				echo ".SS $$ext"; \
+				cat "$$f"; \
+				continue; \
+			fi; \
 		fi; \
 		f="${srcdir}/lib$(2)t_$$ext.man"; \
 		if [ -f "$$f" ]; then \
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-01  9:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-31 16:50 [PATCH] fix "manpages: do not include v4-only modules in ip6tables manpage" Florian Westphal
2009-05-31 20:24 ` Jan Engelhardt
2009-06-01  8:58   ` Pablo Neira Ayuso
2009-06-01  9:49     ` Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.