echo "Building lz4."
cd $depsToolsetDir
if [[ ! -d $lz4Dir ]]; then
- git clone https://github.com/lz4/lz4
- cd $lz4Dir; git checkout $lz4Tag
+ git clone --branch $lz4Tag --depth 1 https://github.com/lz4/lz4
+ cd $lz4Dir
fi
cd $lz4Dir
_make BUILD_STATIC=no CC=${MINGW_CC%-posix*} \
echo "Building OpenSSL."
cd $depsSrcDir
if [[ ! -d $sslSrcDir ]]; then
- git clone https://github.com/openssl/openssl
- cd $sslSrcDir; git checkout $sslTag
+ git clone --branch $sslTag --depth 1 https://github.com/openssl/openssl
+ cd $sslSrcDir
fi
cd $sslSrcDir
mkdir -p $sslDir
echo "Building libcurl."
cd $depsSrcDir
if [[ ! -d $curlSrcDir ]]; then
- git clone https://github.com/curl/curl
- cd $curlSrcDir && git checkout $curlTag
+ git clone --branch $curlTag --depth 1 https://github.com/curl/curl
+ cd $curlSrcDir
fi
cd $curlSrcDir
./buildconf
echo "Building snappy."
cd $depsSrcDir
if [[ ! -d $snappySrcDir ]]; then
- git clone https://github.com/google/snappy
- cd $snappySrcDir && git checkout $snappyTag
+ git clone --branch $snappyTag --depth 1 https://github.com/google/snappy
+ cd $snappySrcDir
fi
mkdir -p $snappySrcDir/build
cd $snappySrcDir/build