Skip to content

Commit

Permalink
support for OpenSSL 3.2 QUIC stack
Browse files Browse the repository at this point in the history
  • Loading branch information
travislee89 committed Jan 24, 2024
1 parent 869555d commit 7fe732c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions curl-static-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ download_and_extract() {

# If the file is a tarball, extract it
if expr "${FILENAME}" : '.*\.\(tar\.xz\|tar\.gz\|tar\.bz2\|tgz\)$' > /dev/null; then
SOURCE_DIR=$(echo "${FILENAME}" | sed -E "s/\.tar\.(xz|bz2|gz)//g" | sed 's/\.tgz//g')
# SOURCE_DIR=$(echo "${FILENAME}" | sed -E "s/\.tar\.(xz|bz2|gz)//g" | sed 's/\.tgz//g')
SOURCE_DIR=$(tar -tf "${FILENAME}" | head -n 1 | cut -d'/' -f1)
[ -d "${SOURCE_DIR}" ] && rm -rf "${SOURCE_DIR}"
tar -axf "${FILENAME}"
cd "${SOURCE_DIR}"
Expand Down Expand Up @@ -684,10 +685,12 @@ compile_curl() {
local url
change_dir;

if [ "${CURL_VERSION}" = "dev" ] || [ "${CURL_VERSION}" = "DEV" ]; then
git clone --depth 1 https://github.com/curl/curl.git curl-dev;
if [ "${CURL_VERSION}" = "dev" ]; then
if [ ! -d "curl-dev" ]; then
git clone --depth 1 https://github.com/curl/curl.git curl-dev;
fi
cd curl-dev;
CURL_VERSION="DEV";
make clean || true;
else
url_from_github curl/curl "${CURL_VERSION}";
url="${URL}";
Expand Down
11 changes: 7 additions & 4 deletions curl-static-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ download_and_extract() {

# If the file is a tarball, extract it
if echo "${FILENAME}" | grep -qP '.*\.(tar\.xz|tar\.gz|tar\.bz2|tgz)$'; then
SOURCE_DIR=$(echo "${FILENAME}" | sed -E "s/\.tar\.(xz|bz2|gz)//g" | sed 's/\.tgz//g')
# SOURCE_DIR=$(echo "${FILENAME}" | sed -E "s/\.tar\.(xz|bz2|gz)//g" | sed 's/\.tgz//g')
SOURCE_DIR=$(tar -tf "${FILENAME}" | head -n 1 | cut -d'/' -f1)
[ -d "${SOURCE_DIR}" ] && rm -rf "${SOURCE_DIR}"
tar -xf "${FILENAME}"
cd "${SOURCE_DIR}"
Expand Down Expand Up @@ -524,10 +525,12 @@ compile_curl() {
mkdir -p "${PREFIX}/lib/dylib"
mv "${PREFIX}/lib/"*.dylib "${PREFIX}/lib/dylib/"

if [ "${CURL_VERSION}" = "dev" ] || [ "${CURL_VERSION}" = "DEV" ]; then
git clone --depth 1 https://github.com/curl/curl.git curl-dev;
if [ "${CURL_VERSION}" = "dev" ]; then
if [ ! -d "curl-dev" ]; then
git clone --depth 1 https://github.com/curl/curl.git curl-dev;
fi
cd curl-dev;
CURL_VERSION="DEV";
make clean || true;
else
url_from_github curl/curl "${CURL_VERSION}";
url="${URL}";
Expand Down

0 comments on commit 7fe732c

Please sign in to comment.