@@ -40,7 +40,6 @@ usage: fetch-source.sh [--swift-scheme <scheme>|--swift-tag <tag>
4040 |--swift-version <version>]
4141 [--curl-version <version>]
4242 [--boringssl-version <version>]
43- [--zlib-version <version>]
4443 [--clone-with-ssh]
4544 [--source-dir <path>]
4645
@@ -60,8 +59,6 @@ SDK for Swift. Options are:
6059 --libxml2-version <version>
6160 --curl-version <version>
6261 --boringssl-version <version>
63- --zlib-version <version>
64- Select the versions of other dependencies.
6562EOF
6663}
6764
@@ -70,17 +67,14 @@ if [[ -z "${SWIFT_VERSION}" ]]; then
7067 SWIFT_VERSION=scheme:release/6.1
7168fi
7269if [[ -z " ${LIBXML2_VERSION} " ]]; then
73- LIBXML2_VERSION=2.12.7
70+ LIBXML2_VERSION=2.14.2
7471fi
7572if [[ -z " ${CURL_VERSION} " ]]; then
76- CURL_VERSION=8.7.1
73+ CURL_VERSION=8.13.0
7774fi
7875if [[ -z " ${BORINGSSL_VERSION} " ]]; then
7976 BORINGSSL_VERSION=fips-20220613
8077fi
81- if [[ -z " ${ZLIB_VERSION} " ]]; then
82- ZLIB_VERSION=1.3.1
83- fi
8478
8579clone_with_ssh=false
8680while [ " $# " -gt 0 ]; do
@@ -97,8 +91,6 @@ while [ "$#" -gt 0 ]; do
9791 CURL_VERSION=" $2 " ; shift ;;
9892 --boringssl-version)
9993 BORINGSSL_VERSION=" $2 " ; shift ;;
100- --zlib-version)
101- ZLIB_VERSION=" $2 " ; shift ;;
10294 --clone-with-ssh)
10395 clone_with_ssh=true ;;
10496 --source-dir)
@@ -164,18 +156,11 @@ pushd curl >/dev/null 2>&1
164156git checkout curl-$( echo ${CURL_VERSION} | tr ' .' ' _' )
165157popd > /dev/null 2>&1
166158
167- # Fetch BoringSSL (also can't clone using ssh)
159+ # Fetch BoringSSL
168160header " Fetching BoringSSL"
169161
170162[[ -d boringssl ]] || git clone https://boringssl.googlesource.com/boringssl
171163pushd boringssl > /dev/null 2>&1
172164git checkout ${BORINGSSL_VERSION}
173165popd > /dev/null 2>&1
174166
175- # Fetch zlib
176- header " Fetching zlib"
177-
178- [[ -d zlib ]] || git clone ${github} madler/zlib.git
179- pushd zlib > /dev/null 2>&1
180- git checkout v${ZLIB_VERSION}
181- popd > /dev/null 2>&1
0 commit comments