From: Alejandro Colomar Date: Mon, 28 Aug 2023 00:03:16 +0000 (+0200) Subject: *.mk: gzip(1) doesn't need '-' to act as a filter X-Git-Tag: man-pages-6.06~302 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=799cfcf2d7be48fd3cddcd6f1e0744f996997ca7;p=thirdparty%2Fman-pages.git *.mk: gzip(1) doesn't need '-' to act as a filter Remove the redundant special file name. It would be better to specify /dev/stdin, if we wanted to specify a file name. But the command just works as a filter without a filename, so there's no need for that at all. Remove this redundant code. The other compressors are compatible with gzip(1) in that regard. Do the same. Signed-off-by: Alejandro Colomar --- diff --git a/share/mk/install/man.mk b/share/mk/install/man.mk index e6b3dbc0b1..f254ddd00d 100644 --- a/share/mk/install/man.mk +++ b/share/mk/install/man.mk @@ -84,17 +84,17 @@ ifeq ($(Z),.bz2) fi else ifeq ($(Z),.gz) if ! $(TEST) -L $@; then \ - $(GZIP) $(GZIPFLAGS) - <$@ \ + $(GZIP) $(GZIPFLAGS) <$@ \ | $(SPONGE) $@; \ fi else ifeq ($(Z),.lz) if ! $(TEST) -L $@; then \ - $(LZIP) $(LZIPFLAGS) - <$@ \ + $(LZIP) $(LZIPFLAGS) <$@ \ | $(SPONGE) $@; \ fi else ifeq ($(Z),.xz) if ! $(TEST) -L $@; then \ - $(XZ) $(XZFLAGS) - <$@ \ + $(XZ) $(XZFLAGS) <$@ \ | $(SPONGE) $@; \ fi endif