From: Philipp Takacs Date: Sun, 6 Jan 2019 02:13:04 +0000 (+0100) Subject: automitc set the owner/group in release tar X-Git-Tag: mmh-0.4~3 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=c42126750a40dae4c42a84c152c3be1ede3cf89e automitc set the owner/group in release tar --- 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"