summaryrefslogtreecommitdiffstats
path: root/toolchain/dependencies/check-host-lzma.sh
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/dependencies/check-host-lzma.sh')
-rwxr-xr-xtoolchain/dependencies/check-host-lzma.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/dependencies/check-host-lzma.sh b/toolchain/dependencies/check-host-lzma.sh
new file mode 100755
index 000000000..34e8f0379
--- /dev/null
+++ b/toolchain/dependencies/check-host-lzma.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+ok=""
+
+for bin in /usr/bin/lzma $LZMA
+do
+# TODO: add check for proper functionality here..
+ $bin --version > /dev/null 2>&1 && ok="$bin"
+ if test "x$ok" != "x" ; then
+ break
+ fi
+done
+echo "$ok"