X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=Makefile.local;h=1535c2ae8a7bcbe53ccfaa38efcdf2721ca28267;hp=9505b7fee70b43b281bf5e6b428dfb7c522b14c2;hb=64831e8016fcc9877c0dc8e855ec24583cac34ef;hpb=197d67959bf459fc0f1f63a202d162a569535bf3 diff --git a/Makefile.local b/Makefile.local index 9505b7fe..1535c2ae 100644 --- a/Makefile.local +++ b/Makefile.local @@ -31,11 +31,12 @@ $(TAR_FILE): fi ; \ git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ $$ref > $(TAR_FILE).tmp echo $(VERSION) > version.tmp + ct=`git --no-pager log -1 --pretty=format:%ct $$ref` ; \ tar --owner root --group root --append -f $(TAR_FILE).tmp \ --transform s_^_$(PACKAGE)-$(VERSION)/_ \ - --transform 's_.tmp$$__' version.tmp + --transform 's_.tmp$$__' --mtime=@$$ct version.tmp rm version.tmp - gzip < $(TAR_FILE).tmp > $(TAR_FILE) + gzip -n < $(TAR_FILE).tmp > $(TAR_FILE) @echo "Source is ready for release in $(TAR_FILE)" $(SHA256_FILE): $(TAR_FILE)