]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
catman.mk: build-catman-troff: Fail if troff(1) writes to stderr
authorAlejandro Colomar <alx@kernel.org>
Sat, 22 Apr 2023 18:38:19 +0000 (20:38 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sat, 22 Apr 2023 18:38:28 +0000 (20:38 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/build/catman.mk

index 4d0683737221d218182169295b7f90c21c7733a5..a64bf514cff66787789fec2d2d61c511c2ab4b7c 100644 (file)
@@ -77,7 +77,8 @@ $(_CATMAN_troff): %.cat.troff: %.eqn | $$(@D)/
 
 $(_CATMAN_set): %.cat.set: %.cat.troff | $$(@D)/
        $(info  TROFF   $@)
-       $(TROFF) -T$(NROFF_OUT_DEVICE) $(TROFFFLAGS) <$< >$@
+       $(TROFF) -T$(NROFF_OUT_DEVICE) $(TROFFFLAGS) <$< 2>&1 >$@ \
+       | ( ! $(GREP) ^ )
 
 $(_CATMAN): %.cat: %.cat.set | $$(@D)/
        $(info  GROTTY  $@)