]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
*.mk: build-catman-troff: Silence warnings about missing fifth argument
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Apr 2023 17:54:49 +0000 (19:54 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sat, 29 Apr 2023 17:54:58 +0000 (19:54 +0200)
This happens when the second argument is a subsection, and the warning
is right because the page ends up with no section title, but let's
forget about it for now.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/build/catman.mk

index c105e60577f14556c5a81c10a718b58f31a5f971..f9cdde988e488812318f468f8c10f6575eb5e013 100644 (file)
@@ -47,7 +47,10 @@ $(_CATMAN_troff): %.cat.troff: %.eqn | $$(@D)/
 
 $(_CATMAN_MAN_set): %.cat.set: %.cat.troff | $$(@D)/
        $(info  TROFF   $@)
-       ! ($(TROFF) $(TROFFFLAGS_MAN) $(NROFFFLAGS) <$< 2>&1 >$@) \
+       ! ($(TROFF) $(TROFFFLAGS_MAN) $(NROFFFLAGS) <$< 2>&1 >$@ \
+          | $(GREP) -v 'style: .TH missing fifth argument and second argument' \
+          ||:; \
+       ) \
        | $(GREP) ^ >&2
 
 $(_CATMAN_MDOC_set): %.cat.set: %.cat.troff | $$(@D)/