aboutsummaryrefslogtreecommitdiff
path: root/Makefile.local
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2017-04-08 22:00:17 +0300
committerDavid Bremner <david@tethera.net>2017-04-14 16:17:46 -0300
commit18ee87e7ce7e6a20e17a8e5138a82b9069276691 (patch)
tree9cd3de92b086be8a22168cf887143a07e721ed9f /Makefile.local
parent807a9cb8aa897462e247993a1cdfa96377aa20e4 (diff)
Makefile.local: have all files in release tarball be owned by root
The tar content `git archive` creates (reproducibly) have owner and group set to 'root'. (GNU) tar writes user ids to the added file `version` by default. The contents of tar archive looks better and more consistent when owner and group in all files are the same. While at it, split this long command line to multiple lines.
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.local b/Makefile.local
index 03eafaaa..3d3474e0 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -31,7 +31,9 @@ $(TAR_FILE):
fi ; \
git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ $$ref > $(TAR_FILE).tmp
echo $(VERSION) > version.tmp
- tar --append -f $(TAR_FILE).tmp --transform s_^_$(PACKAGE)-$(VERSION)/_ --transform 's_.tmp$$__' version.tmp
+ tar --owner root --group root --append -f $(TAR_FILE).tmp \
+ --transform s_^_$(PACKAGE)-$(VERSION)/_ \
+ --transform 's_.tmp$$__' version.tmp
rm version.tmp
gzip < $(TAR_FILE).tmp > $(TAR_FILE)
@echo "Source is ready for release in $(TAR_FILE)"