From: Jonas Fonseca Date: Wed, 20 Jun 2007 07:40:27 +0000 (+0200) Subject: Delete the old VERSION file before appending the new one in make dist X-Git-Tag: tig-0.9~48 X-Git-Url: https://git.distorted.org.uk/~mdw/tig/commitdiff_plain/4393be9e5547971d53cf470ff7d9c01c058c9524 Delete the old VERSION file before appending the new one in make dist --- 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