Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
3a658409
Commit
3a658409
authored
Jun 25, 2019
by
Mark OLESEN
Committed by
Andrew Heather
Jun 25, 2019
Browse files
CONFIG: set umask 0022 when packing tar files for release
parent
1b270822
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tools/foamPackRelease
View file @
3a658409
...
...
@@ -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"'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment