From 084a0cca756300a87e0d4fa08bbb51f54295e9b0 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 18 Apr 2020 14:58:40 +0200 Subject: [PATCH] Truncate SDK folder to minor version Fixes #15 --- build-libssl.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build-libssl.sh b/build-libssl.sh index 3e77c9e..b35a29e 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -363,6 +363,16 @@ if [ ! -n "${WATCHOS_SDKVERSION}" ]; then WATCHOS_SDKVERSION=$(xcrun -sdk watchos --show-sdk-version) fi +# Truncate to minor version +MINOR_VERSION=(${MACOS_SDKVERSION//./ }) +MACOS_SDKVERSION="${MINOR_VERSION[0]}.${MINOR_VERSION[1]}" +MINOR_VERSION=(${IOS_SDKVERSION//./ }) +IOS_SDKVERSION="${MINOR_VERSION[0]}.${MINOR_VERSION[1]}" +MINOR_VERSION=(${TVOS_SDKVERSION//./ }) +TVOS_SDKVERSION="${MINOR_VERSION[0]}.${MINOR_VERSION[1]}" +MINOR_VERSION=(${WATCHOS_SDKVERSION//./ }) +WATCHOS_SDKVERSION="${MINOR_VERSION[0]}.${MINOR_VERSION[1]}" + # Determine number of cores for (parallel) build BUILD_THREADS=1 if [ "${PARALLEL}" != "false" ]; then