Rewrote host environment targets to work out of the box
[project/luci.git] / build / hostenv.sh
diff --git a/build/hostenv.sh b/build/hostenv.sh
new file mode 100755 (executable)
index 0000000..ee906b0
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+export LD_LIBRARY_PATH="$1/usr/lib:$LD_LIBRARY_PATH"
+export PATH="$1/bin:$1/usr/bin:$PATH"
+export LUA_PATH="$1/$2/?.lua;$1/$2/?/init.lua;;"
+export LUA_CPATH="$1/$3/?.so;;"
+$4