[hackers] [ii] Makefile: fix make dist if it is run more than once || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 2 Sep 2022 11:53:46 +0200 (CEST)

commit 00698e45ead4ee1cec0e17b9f209dc4332c6f07b
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Fri Sep 2 11:52:58 2022 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri Sep 2 11:52:58 2022 +0200

    Makefile: fix make dist if it is run more than once
    
    ... and stream directly to compressed tarball.

diff --git a/Makefile b/Makefile
index ee72616..29e2f97 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -53,8 +53,7 @@ dist: clean
         mkdir -p ii-$(VERSION)
         cp -R Makefile README FAQ LICENSE strlcpy.c arg.h \
                 ii.c ii.1 ii-$(VERSION)
- tar -cf ii-$(VERSION).tar ii-$(VERSION)
- gzip ii-$(VERSION).tar
+ tar -cf - ii-$(VERSION) | gzip -c > ii-$(VERSION).tar.gz
         rm -rf ii-$(VERSION)
 
 clean:
Received on Fri Sep 02 2022 - 11:53:46 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 02 2022 - 12:00:38 CEST