X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/63755c48fd5fe4f31775e0f38857314879b93f39..136cc0a23da9281874ee88b7b51174538fcb9269:/sysroot.sh diff --git a/sysroot.sh b/sysroot.sh index 2a2c4b8a..469e14ff 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 @@ -64,8 +66,6 @@ function extract() { declare -A urls -urls[apt7]=http://apt.saurik.com/debs/apt7_0.7.25.3-7_iphoneos-arm.deb -urls[apt7-lib]=http://apt.saurik.com/debs/apt7-lib_0.7.25.3-12_iphoneos-arm.deb urls[coreutils]=http://apt.saurik.com/debs/coreutils_7.4-11_iphoneos-arm.deb if [[ 0 ]]; then @@ -102,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 +ln -s "$(xcodebuild -sdk macosx -version Path)"/System/Library/Frameworks/IOKit.framework/Headers IOKit