summaryrefslogtreecommitdiffstats
path: root/bin/inroot~
diff options
context:
space:
mode:
Diffstat (limited to 'bin/inroot~')
-rwxr-xr-xbin/inroot~9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/inroot~ b/bin/inroot~
new file mode 100755
index 0000000..3903ad7
--- /dev/null
+++ b/bin/inroot~
@@ -0,0 +1,9 @@
+#!/bin/sh
+root=$1
+shift
+if test -d /lib64; then
+ libext=64
+else
+ libext=
+fi
+exec env INROOT_DIR=${root} XDG_DATA_DIRS=${root}/share LD_LIBRARY_PATH=${root}/lib${libext} PATH=${root}/bin:${PATH} PKG_CONFIG_PATH=${root}/lib${libext}/pkgconfig PYTHONPATH=${root}/lib${libext}/python2.5/site-packages "$@"