Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8587ccd0
Commit
8587ccd0
authored
Mar 30, 2018
by
Davis King
Browse files
Added logging
parent
d0b94a76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dlib/travis/get-old-cmakes.sh
dlib/travis/get-old-cmakes.sh
+4
-0
No files found.
dlib/travis/get-old-cmakes.sh
View file @
8587ccd0
...
@@ -3,11 +3,15 @@
...
@@ -3,11 +3,15 @@
# Exit if anything fails.
# Exit if anything fails.
set
-eux
set
-eux
echo
"Checking if cmake already downloaded"
if
[[
!
-x
cmake/2.8/bin/cmake
||
!
-x
cmake/3.1/bin/cmake
||
!
-x
cmake/3.5/bin/cmake
]]
;
then
if
[[
!
-x
cmake/2.8/bin/cmake
||
!
-x
cmake/3.1/bin/cmake
||
!
-x
cmake/3.5/bin/cmake
]]
;
then
echo
"Didn't find it, clearing old cmake folder"
rm
-rf
cmake
rm
-rf
cmake
fi
fi
if
[[
!
-d
cmake
]]
;
then
if
[[
!
-d
cmake
]]
;
then
echo
"Downloading cmake..."
CMAKE_URL
=
"http://www.cmake.org/files/v2.8/cmake-2.8.12-Linux-i386.tar.gz"
CMAKE_URL
=
"http://www.cmake.org/files/v2.8/cmake-2.8.12-Linux-i386.tar.gz"
mkdir
-p
cmake/2.8
mkdir
-p
cmake/2.8
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
cmake/2.8
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
cmake/2.8
...
...
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