]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: fix manpage collection
authorJan Engelhardt <jengelh@medozas.de>
Mon, 1 Jun 2009 09:52:07 +0000 (11:52 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 1 Jun 2009 09:54:55 +0000 (11:54 +0200)
Florian Westphal points out that v1.4.3.2-9-gc304d77 greps for the
keyword in the wrong file, and that files with NFPROTO_UNSPEC are
skipped.

This patch corrects that part, and makes `make` now output the
manpages it collected.

Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/GNUmakefile.in

index 8d7f21de7c243c89f3299f2ae51e14cdae14e97d..e1f1f494f47cfef4ae90df0a008205fe04d2c7f9 100644 (file)
@@ -161,13 +161,16 @@ man_run    = \
        ${AM_VERBOSE_GEN} \
        for ext in $(1); do \
                f="${srcdir}/libxt_$$ext.man"; \
-               if [ -f "$$f" ] && grep -q "$(3)" "$$f"; then \
+               cf="${srcdir}/libxt_$$ext.c"; \
+               if [ -f "$$f" ] && grep -Eq "$(3)|NFPROTO_UNSPEC" "$$cf"; then \
+                       echo -e "\t+ $$f" >&2; \
                        echo ".SS $$ext"; \
                        cat "$$f"; \
                        continue; \
                fi; \
                f="${srcdir}/lib$(2)t_$$ext.man"; \
                if [ -f "$$f" ]; then \
+                       echo -e "\t+ $$f" >&2; \
                        echo ".SS $$ext"; \
                        cat "$$f"; \
                        continue; \