From 4393be9e5547971d53cf470ff7d9c01c058c9524 Mon Sep 17 00:00:00 2001 Message-Id: <4393be9e5547971d53cf470ff7d9c01c058c9524.1716148896.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 20 Jun 2007 09:40:27 +0200 Subject: [PATCH] Delete the old VERSION file before appending the new one in make dist Organization: Straylight/Edgeware From: Jonas Fonseca --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d320d3..d5d9695 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,8 @@ dist: tig.spec @mkdir -p $(TARNAME) && \ cp tig.spec $(TARNAME) && \ echo $(VERSION) > $(TARNAME)/VERSION - git archive --format=tar --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar && \ + git archive --format=tar --prefix=$(TARNAME)/ HEAD | \ + tar --delete $(TARNAME)/VERSION > $(TARNAME).tar && \ tar rf $(TARNAME).tar $(TARNAME)/tig.spec $(TARNAME)/VERSION && \ gzip -f -9 $(TARNAME).tar && \ md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5 -- [mdw]