CONFIG: set umask 0022 when packing tar files for release

This commit is contained in:
Mark Olesen
2019-06-25 17:24:39 +02:00
committed by Andrew Heather
parent 1b2708226e
commit 3a65840993

View File

@ -211,8 +211,9 @@ echo "tarName=\""$tarName"\""
# Note - directory separator '/' encoded as '@' for manifest name # Note - directory separator '/' encoded as '@' for manifest name
echo "manifest=\""${dirPrefix}"@META-INFO@"manifest.txt"\"" echo "manifest=\""${dirPrefix}"@META-INFO@"manifest.txt"\""
echo echo
echo "set -x" echo 'set -x'
echo 'git archive --format=tar --prefix="$dirPrefix/" -o "$outputDir/$tarName.tar" "$head"' echo 'umask 0022'
echo 'git -c tar.umask=user archive --format=tar --prefix="$dirPrefix/" -o "$outputDir/$tarName.tar" "$head"'
echo 'echo "api=$api" > "$outputDir/$manifest"' echo 'echo "api=$api" > "$outputDir/$manifest"'
echo 'echo "patch=$patch" >> "$outputDir/$manifest"' echo 'echo "patch=$patch" >> "$outputDir/$manifest"'
@ -237,7 +238,7 @@ then
echo echo
echo 'pushd "$module"' echo 'pushd "$module"'
echo 'git archive --format=tar --prefix="$dirPrefix/$module/" -o "$outputDir/$tarModule.tar" "$commit"' echo 'git -c tar.umask=user archive --format=tar --prefix="$dirPrefix/$module/" -o "$outputDir/$tarModule.tar" "$commit"'
echo 'git ls-tree -r "$commit" >> "$outputDir/$manifest"' echo 'git ls-tree -r "$commit" >> "$outputDir/$manifest"'
echo 'echo >> "$outputDir/$manifest"' echo 'echo >> "$outputDir/$manifest"'