From 2d56e5af900662ea0a13e9e8ea4a802609214ecc Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 28 Jun 2012 13:32:53 +0100 Subject: run: Rearrangement and add comments. No functional change. --- run.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'run.in') diff --git a/run.in b/run.in index 1c532bea..c73777be 100644 --- a/run.in +++ b/run.in @@ -45,6 +45,8 @@ b=@abs_builddir@ export TMPDIR="$b" # Set local environment relative to this script. +export LIBGUESTFS_PATH="$b/appliance" + library_path="$b/src/.libs:$b/gobject/.libs" if [ -z "$LD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH=$library_path @@ -53,6 +55,7 @@ else fi export LD_LIBRARY_PATH +# For Perl. if [ -z "$PERL5LIB" ]; then PERL5LIB="$b/perl/blib/lib:$b/perl/blib/arch" else @@ -60,6 +63,7 @@ else fi export PERL5LIB +# For Python. if [ -z "$PYTHONPATH" ]; then PYTHONPATH="$b/python:$b/python/.libs" else @@ -67,6 +71,7 @@ else fi export PYTHONPATH +# For GObject and friends. if [ -z "$GI_TYPELIB_PATH" ]; then GI_TYPELIB_PATH="$b/gobject" else @@ -74,8 +79,6 @@ else fi export GI_TYPELIB_PATH -export LIBGUESTFS_PATH="$b/appliance" - # This is a cheap way to find some use-after-free and uninitialized # read problems when using glibc. random_val="$(awk 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null)" -- cgit