Code

Delete the old VERSION file before appending the new one in make dist
authorJonas Fonseca <fonseca@diku.dk>
Wed, 20 Jun 2007 07:40:27 +0000 (09:40 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 20 Jun 2007 07:40:27 +0000 (09:40 +0200)
Makefile

index 1d320d3e6edc6d16a367a733f1744ea11f99b5d1..d5d9695cc8cbee4608ad6222b7c54af1639bb6e1 100644 (file)
--- 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