]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
*.mk: gzip(1) doesn't need '-' to act as a filter
authorAlejandro Colomar <alx@kernel.org>
Mon, 28 Aug 2023 00:03:16 +0000 (02:03 +0200)
committerAlejandro Colomar <alx@kernel.org>
Mon, 28 Aug 2023 00:04:37 +0000 (02:04 +0200)
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 <alx@kernel.org>
share/mk/install/man.mk

index e6b3dbc0b133b7d854f0035131230005db1958b2..f254ddd00dff5c7f36170cc77be06a4c8a89c056 100644 (file)
@@ -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