automitc set the owner/group in release tar
authorPhilipp Takacs <philipp@bureaucracy.de>
Sun, 6 Jan 2019 02:13:04 +0000 (03:13 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 6 Jan 2019 02:13:04 +0000 (03:13 +0100)
Makefile.in

index 465beda..4012a2d 100644 (file)
@@ -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"