From c42126750a40dae4c42a84c152c3be1ede3cf89e Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sun, 6 Jan 2019 03:13:04 +0100 Subject: [PATCH] automitc set the owner/group in release tar --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 465beda..4012a2d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -175,6 +175,7 @@ mmhdist: $(DISTINCLUDE) distname @echo "Copying files to distribution directory" @git clone $(srcdir) $(distdir) @chmod 755 $(distdir) + @sleep 1 #avoid rebuilding sbr/dtimep.c in release @for file in $(DISTINCLUDE); do \ cp -p $(srcdir)/$$file $(distdir)/$$file; \ touch $(distdir)/$$file; \ @@ -183,6 +184,6 @@ mmhdist: $(DISTINCLUDE) distname rm -rf $(distdir)/$$file; \ done @chmod -R a+r $(distdir) - tar chf - $(distdir) | gzip -c > $(tarfile) + tar --owner=0 --group=0 -chf - $(distdir) | gzip -c > $(tarfile) @rm -rf $(distdir) distname @echo "Done building mmh-$(VERSION) distribution" -- 1.7.10.4