summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-06-01 11:52:07 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-06-01 11:54:55 +0200
commitcdcfd887b0dcb3c5cff3c2ae49fc34d0cbac5c44 (patch)
tree473b73398227e8c7bb3a48692df52ba6a469465e /extensions
parent67cf1a928952f1d1ca32f529d78036cebc1b8800 (diff)
build: fix manpage collection
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>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/GNUmakefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 8d7f21de..e1f1f494 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -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; \