]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
manpages: do not include v4-only modules in ip6tables manpage
authorJan Engelhardt <jengelh@medozas.de>
Tue, 26 May 2009 11:21:55 +0000 (13:21 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 26 May 2009 11:22:17 +0000 (13:22 +0200)
References: http://bugs.debian.org/529954
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/GNUmakefile.in

index 66a4f46aa88a9e50327a0fd12eada1f2b0cd222b..8d7f21de7c243c89f3299f2ae51e14cdae14e97d 100644 (file)
@@ -161,7 +161,7 @@ man_run    = \
        ${AM_VERBOSE_GEN} \
        for ext in $(1); do \
                f="${srcdir}/libxt_$$ext.man"; \
-               if [ -f "$$f" ]; then \
+               if [ -f "$$f" ] && grep -q "$(3)" "$$f"; then \
                        echo ".SS $$ext"; \
                        cat "$$f"; \
                        continue; \
@@ -175,13 +175,13 @@ man_run    = \
        done >$@;
 
 matches4.man: .initext4.dd $(wildcard ${srcdir}/lib*.man)
-       $(call man_run,$(call ex_matches,${pfx_build_mod} ${pf4_build_mod}),ip)
+       $(call man_run,$(call ex_matches,${pfx_build_mod} ${pf4_build_mod}),ip,NFPROTO_IPV4)
 
 matches6.man: .initext6.dd $(wildcard ${srcdir}/lib*.man)
-       $(call man_run,$(call ex_matches,${pfx_build_mod} ${pf6_build_mod}),ip6)
+       $(call man_run,$(call ex_matches,${pfx_build_mod} ${pf6_build_mod}),ip6,NFPROTO_IPV6)
 
 targets4.man: .initext4.dd $(wildcard ${srcdir}/lib*.man)
-       $(call man_run,$(call ex_targets,${pfx_build_mod} ${pf4_build_mod}),ip)
+       $(call man_run,$(call ex_targets,${pfx_build_mod} ${pf4_build_mod}),ip,NFPROTO_IPV4)
 
 targets6.man: .initext6.dd $(wildcard ${srcdir}/lib*.man)
-       $(call man_run,$(call ex_targets,${pfx_build_mod} ${pf6_build_mod}),ip6)
+       $(call man_run,$(call ex_targets,${pfx_build_mod} ${pf6_build_mod}),ip6,NFPROTO_IPV6)