Makefile: fix make dist if it is run more than once - ii - irc it, simple FIFO based irc client
HTML git clone git://git.suckless.org/ii
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 00698e45ead4ee1cec0e17b9f209dc4332c6f07b
DIR parent 3fab03ea0be7ed61aa9900bb378db328fe83e34b
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 2 Sep 2022 11:52:58 +0200
Makefile: fix make dist if it is run more than once
... and stream directly to compressed tarball.
Diffstat:
M Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -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: