]> git.saurik.com Git - cydia.git/blobdiff - sysroot.sh
Initial stab at a multi-file build environment.
[cydia.git] / sysroot.sh
index 71521dbff4958e042021c860982f14b3d85c5825..5e87c3c432b3d6fd92f2efd5cc904d2624b1cab1 100755 (executable)
@@ -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