summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2018-08-13 03:00:50 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2018-08-13 03:00:50 -0700
commit3c1cd8998ed438834128443841b6b827c652b939 (patch)
treecfd5331ef2a801a80609ba9993bb9e89503d7889
parent429e511d2440691bd04f6d0f9db9ef0cd49d7153 (diff)
Fix sysroot (broken due to Apple now using https).
-rwxr-xr-xsysroot.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysroot.sh b/sysroot.sh
index 99c8889..a124baa 100755
--- a/sysroot.sh
+++ b/sysroot.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+set -e
+
if [[ ${BASH_VERSION} != 4* ]]; then
echo "bash 4.0 required" 1>&2
exit 1
@@ -100,9 +102,9 @@ mkdir -p usr/include
cd usr/include
mkdir CoreFoundation
-wget -O CoreFoundation/CFUniChar.h "http://www.opensource.apple.com/source/CF/CF-550/CFUniChar.h?txt"
+wget --no-check-certificate -O CoreFoundation/CFUniChar.h "https://opensource.apple.com/source/CF/CF-550/CFUniChar.h"
mkdir -p WebCore
-wget -O WebCore/WebCoreThread.h 'http://www.opensource.apple.com/source/WebCore/WebCore-658.28/wak/WebCoreThread.h?txt'
+wget --no-check-certificate -O WebCore/WebCoreThread.h "https://opensource.apple.com/source/WebCore/WebCore-658.28/wak/WebCoreThread.h"
ln -s /System/Library/Frameworks/IOKit.framework/Headers IOKit