X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/569d107cce540315f637375c07e9685f25999fe7..c8910aa3d4e4dfeb66d91351e05d33a93728ee0b:/sysroot.sh diff --git a/sysroot.sh b/sysroot.sh index 71521dbf..4815b242 100755 --- a/sysroot.sh +++ b/sysroot.sh @@ -11,6 +11,18 @@ set -e shopt -s extglob shopt -s nullglob +for command in unlzma wget; do + if ! which "${command}" &>/dev/null; then + echo "Cannot run \`${command}\`. Please read compiling.txt." 1>&2 + exit 1 + fi +done + +if tar --help | grep bsdtar &>/dev/null; then + echo "Running \`tar\` is bsdtar :(. Please read compiling.txt." 1>&2 + exit 1 +fi + rm -rf sysroot mkdir sysroot cd sysroot @@ -107,7 +119,7 @@ else ') fi -for framework in ApplicationServices CoreServices IOKit IOSurface JavaScriptCore QuartzCore WebKit; do +for framework in ApplicationServices CoreServices IOKit IOSurface JavaScriptCore WebKit; do ln -s /System/Library/Frameworks/"${framework}".framework/Headers "${framework}" done