FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp_redis/scripts/install-cmake.sh at master · cpp-redis/cpp_redis · GitHub
cpp-redis
cpp_redis
Repository navigation
Code
Issues
35
(35)
Pull requests
9
(9)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp_redis
/
scripts
/
install-cmake.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
30 lines (24 loc) · 928 Bytes
Breadcrumbs
cpp_redis
/
scripts
/
install-cmake.sh
Copy path
File metadata and controls
executable file
·
30 lines (24 loc) · 928 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!
/usr/bin/env sh -x
#
this script needs to be sourced
CMAKE_DOWNLOAD_DIR=
"
${TRAVIS_BUILD_DIR}
/deps
"
CMAKE_VERSION_MAJOR=
"
3
"
CMAKE_VERSION_MINOR=
"
15
"
CMAKE_VERSION_PATCH=
"
3
"
CMAKE_VERSION=
"
${CMAKE_VERSION_MAJOR}
.
${CMAKE_VERSION_MINOR}
.
${CMAKE_VERSION_PATCH}
"
CMAKE_PLATFORM=
"
Linux
"
if
[[
"
$TRAVIS_OS_NAME
"
==
"
osx
"
]]
;
then
CMAKE_PLATFORM=
"
Darwin
"
;
fi
CMAKE_FILE=
"
cmake-
${CMAKE_VERSION}
-
${CMAKE_PLATFORM}
-x86_64
"
CMAKE_DIR=
"
v
${CMAKE_VERSION_MAJOR}
.
${CMAKE_VERSION_MINOR}
"
CMAKE_FILE_URL=
"
https://cmake.org/files/
${CMAKE_DIR}
/
${CMAKE_FILE}
.tar.gz
"
mkdir -p
${CMAKE_DOWNLOAD_DIR}
cd
${CMAKE_DOWNLOAD_DIR}
travis_retry wget
${CMAKE_FILE_URL}
tar -xvf
${CMAKE_FILE}
.tar.gz
>
/dev/null
CMAKE_INSTALL_DIR=
"
${CMAKE_DOWNLOAD_DIR}
/
${CMAKE_FILE}
"
if
[[
"
$TRAVIS_OS_NAME
"
==
"
osx
"
]]
;
then
CMAKE_INSTALL_DIR=
"
${CMAKE_INSTALL_DIR}
/CMake.app/Contents
"
;
fi
export
PATH=
"
${CMAKE_INSTALL_DIR}
:
${CMAKE_INSTALL_DIR}
/bin:
$PATH
"
cd
-
Back
|
FazBrowse Home
|
New Git URL