Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
0000d291
Commit
0000d291
authored
Aug 11, 2018
by
Matthew Brett
Browse files
Source archives from local directory if present
parent
562920d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
common_utils.sh
common_utils.sh
+9
-2
No files found.
common_utils.sh
View file @
0000d291
...
@@ -168,10 +168,17 @@ function fetch_unpack {
...
@@ -168,10 +168,17 @@ function fetch_unpack {
# Make the archive directory in case it doesn't exist
# Make the archive directory in case it doesn't exist
mkdir -p
$arch_sdir
mkdir -p
$arch_sdir
local out_archive="
${
arch_sdir
}
/
${
archive_fname
}
"
local out_archive="
${
arch_sdir
}
/
${
archive_fname
}
"
#
Fetch
the archive i
f it does not exist
#
If
the archive i
s not already in the archives directory, get it.
if [ ! -f "
$out_archive
" ]; then
if [ ! -f "
$out_archive
" ]; then
# Source it from multibuild archives if available.
local our_archive="
${
MULTIBUILD_DIR
}
/archives/
${
archive_fname
}
"
if [ -f "
$our_archive
" ]; then
ln
$our_archive
$out_archive
else
# Otherwise download it.
curl -L
$url
>
$out_archive
curl -L
$url
>
$out_archive
fi
fi
fi
# Unpack archive, refreshing contents, echoing dir and file
# Unpack archive, refreshing contents, echoing dir and file
# names.
# names.
rm_mkdir arch_tmp
rm_mkdir arch_tmp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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