mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
Add mirror for CMake
Add mirror: https://github.com/Kitware/CMake Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
e25f67aea9
commit
cc949d6a85
@ -4,6 +4,9 @@ set -ex
|
||||
|
||||
WRAPPER=""
|
||||
|
||||
CMAKE_URL = "https://gitlab.kitware.com/cmake/cmake.git"
|
||||
CMAKE_MIRROR_URL = "https://github.com/Kitware/CMake.git"
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-32)
|
||||
@ -29,7 +32,9 @@ fi
|
||||
|
||||
cd /usr/src
|
||||
|
||||
git clone https://gitlab.kitware.com/cmake/cmake.git CMake -b v$CMAKE_VERSION --depth 1
|
||||
# If the first link doesn't work, it will use the mirror on github
|
||||
git clone "$CMAKE_URL" CMake -b v$CMAKE_VERSION --depth 1 \
|
||||
|| git clone "$CMAKE_MIRROR_URL" CMake -b v$CMAKE_VERSION --depth 1
|
||||
|
||||
mkdir /usr/src/CMake-build
|
||||
cd /usr/src/CMake-build
|
||||
|
Loading…
Reference in New Issue
Block a user