mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-01-09 16:31:17 +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=""
|
WRAPPER=""
|
||||||
|
|
||||||
|
CMAKE_URL = "https://gitlab.kitware.com/cmake/cmake.git"
|
||||||
|
CMAKE_MIRROR_URL = "https://github.com/Kitware/CMake.git"
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-32)
|
-32)
|
||||||
@ -29,7 +32,9 @@ fi
|
|||||||
|
|
||||||
cd /usr/src
|
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
|
mkdir /usr/src/CMake-build
|
||||||
cd /usr/src/CMake-build
|
cd /usr/src/CMake-build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user