]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/RelBuild: futz with perms and owners in the tar archive
authorJunio C Hamano <gitster@pobox.com>
Tue, 6 Oct 2020 20:12:58 +0000 (13:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Oct 2020 20:12:58 +0000 (13:12 -0700)
RelBuild

index f1e8ba5df17ca15d7581dcd0d0a3cb4b364e2009..ab49d53f9f1f3ecea6295ca33f4b9093fc421afc 100755 (executable)
--- a/RelBuild
+++ b/RelBuild
@@ -5,12 +5,18 @@ version=$(git describe --exact) &&
 label=$(echo "$version" | sed -e 's|^v||') &&
 version=$(echo "$label" | sed -e 's|-|.|g') || exit
 
-make clean && make $j CFLAGS="-O2 -Wno-format-zero-length" dist &&
+TAR_DIST_EXTRA_OPTS="--owner=root:0 --group=root:0 --mode=u+rwX,og+rX,og-w"
+
+make clean &&
+make $j CFLAGS="-O2 -Wno-format-zero-length" \
+       TAR_DIST_EXTRA_OPTS="$TAR_DIST_EXTRA_OPTS" dist &&
 
 ASCIIDOC_NO_ROFF=YesPlease \
 ASCIIDOC8=YesPlease \
 MAN_BASE_URL="git-htmldocs/" \
-make $j dist-doc || exit
+make $j \
+       TAR_DIST_EXTRA_OPTS="$TAR_DIST_EXTRA_OPTS" \
+       dist-doc || exit
 # The above used to be
 # MAN_BASE_URL="http://www.kernel.org/pub/software/scm/git/docs/"