Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Cloogle
cloogle.org
Commits
b973b091
Verified
Commit
b973b091
authored
Nov 15, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retry curl requests in fetch_libs.sh
parent
91c6d95b
Pipeline
#16467
passed with stage
in 14 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
util/fetch_libs.sh
util/fetch_libs.sh
+4
-2
No files found.
util/fetch_libs.sh
View file @
b973b091
...
...
@@ -8,6 +8,8 @@ fi
DEST
=
"
$1
"
CURL
=
"curl -sSL --retry 20 --retry-connrefused"
rm
-rf
"
$DEST
"
mkdir
-p
"
$DEST
"
...
...
@@ -47,7 +49,7 @@ do
"CleanDistribution"
)
if
[[
"
$platform
"
==
windows
*
]]
;
then
URL
=
"https://ftp.cs.ru.nl/Clean/builds/
$platform
/clean-
$distribution
-
$platform
-latest.zip"
curl
-sS
L
"
$URL
"
-o
temp.zip
$CUR
L
"
$URL
"
-o
temp.zip
unzip
-q
-d
"
$DEST
"
temp.zip
"clean-
$distribution
/Libraries/*"
rm
temp.zip
mv
"
$DEST
/clean-
$distribution
/Libraries"
/
*
"
$DEST
"
...
...
@@ -56,7 +58,7 @@ do
else
URL
=
"https://ftp.cs.ru.nl/Clean/builds/
$platform
/clean-
$distribution
-
$platform
-latest.tgz"
echo
"Fetching
$URL
..."
curl
-sS
L
"
$URL
"
|
tar
xz
--exclude
=
exe
-C
"
$DEST
"
--strip-components
=
2
"clean-
$distribution
/lib"
$CUR
L
"
$URL
"
|
tar
xz
--exclude
=
exe
-C
"
$DEST
"
--strip-components
=
2
"clean-
$distribution
/lib"
fi
;;
*
)
...
...
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