mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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.
This commit is contained in:
parent
807a9cb8aa
commit
18ee87e7ce
1 changed files with 3 additions and 1 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue