mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: set umask 0022 when packing tar files for release
This commit is contained in:
committed by
Andrew Heather
parent
1b2708226e
commit
3a65840993
@ -211,8 +211,9 @@ echo "tarName=\""$tarName"\""
|
||||
# Note - directory separator '/' encoded as '@' for manifest name
|
||||
echo "manifest=\""${dirPrefix}"@META-INFO@"manifest.txt"\""
|
||||
echo
|
||||
echo "set -x"
|
||||
echo 'git archive --format=tar --prefix="$dirPrefix/" -o "$outputDir/$tarName.tar" "$head"'
|
||||
echo 'set -x'
|
||||
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 "patch=$patch" >> "$outputDir/$manifest"'
|
||||
@ -237,7 +238,7 @@ then
|
||||
|
||||
echo
|
||||
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 'echo >> "$outputDir/$manifest"'
|
||||
|
||||
Reference in New Issue
Block a user