]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
share/mk/: Useful Use of Cat
authorAlejandro Colomar <alx@kernel.org>
Fri, 29 Mar 2024 17:36:40 +0000 (18:36 +0100)
committerAlejandro Colomar <alx@kernel.org>
Fri, 29 Mar 2024 18:59:51 +0000 (19:59 +0100)
Simplify a pipeline, by using cat(1) to actually catenate stuff.

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

index dc43124b0975d08b7d8fd045338e82fc4b2c0ee2..3395e67e95a413b5526e431c65731171e4bc62b6 100644 (file)
@@ -32,11 +32,8 @@ _PDF_BOOK := $(_PDFDIR)/$(PDF_BOOK)
 
 $(_PDF_BOOK): $(_MANPAGES) $(_TINOS) $(MKBOOK) $(MK) | $$(@D)/
        $(info  $(INFO_)GROPDF          $@)
-       ( \
-               $(CAT) $(MKBOOKDIR)/front.roff; \
-               $(CAT) $(MKBOOKDIR)/an.tmac; \
-               $(MKBOOKDIR)/prepare.pl $(_MANDIR); \
-       ) \
+       $(MKBOOKDIR)/prepare.pl $(_MANDIR) \
+       | $(CAT) $(MKBOOKDIR)/front.roff $(MKBOOKDIR)/an.tmac /dev/stdin \
        | $(PRECONV) \
        | $(PIC) \
        | $(TBL) \