summaryrefslogtreecommitdiffstats
path: root/bin/inroot~
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-07-08 13:22:28 -0400
committerColin Walters <walters@verbum.org>2010-07-08 13:22:28 -0400
commit82308f926cb9ce30d958fe04878004fdd6d47849 (patch)
tree487dfb8eb0a26408f9b02aeb5d43ed931513dcd5 /bin/inroot~
downloadhomegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.tar.gz
homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.tar.xz
homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.zip
Initial commit
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 "$@"