[hackers] [st][PATCH] Use git archive to create the dist tar file

From: Steve Ward <planet36_AT_gmail.com>
Date: Wed, 13 Jan 2021 21:05:41 -0500

---
 Makefile | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 470ac86..7d5ab41 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -33,12 +33,7 @@ clean:
 	rm -f st $(OBJ) st-$(VERSION).tar.gz
 
 dist: clean
-	mkdir -p st-$(VERSION)
-	cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
-		config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
-		st-$(VERSION)
-	tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
-	rm -rf st-$(VERSION)
+	git archive --prefix st-$(VERSION)/ HEAD | gzip > st-$(VERSION).tar.gz
 
 install: st
 	mkdir -p $(DESTDIR)$(PREFIX)/bin
-- 
2.30.0
Received on Thu Jan 14 2021 - 03:05:41 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 14 2021 - 05:12:37 CET