aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-11 13:45:16 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-11 13:46:55 +0200
commit95e1a2336699ef7ac8cdd806f7dca8c100ceeb50 (patch)
treeb82034c1959232a1b9ac33d0b2b0f43a36a80779 /build
parente00bc68eb5eb8070c8799275f73345a27f7abc60 (diff)
Set and export LD_LIBRARY_PATH and SQLPATH in Oracle test driver
Diffstat (limited to 'build')
-rwxr-xr-xbuild/oracle/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/oracle/configure b/build/oracle/configure
index 6e59a3d..1325c83 100755
--- a/build/oracle/configure
+++ b/build/oracle/configure
@@ -80,6 +80,20 @@ echo "--port '$port'" >>$opt
fi
echo "#!/bin/sh" >$drv
+
+dir=`dirname $driver`
+if [ "$dir" != "." ]; then
+ echo >>$drv
+ echo "LD_LIBRARY_PATH=\"$dir:$LD_LIBRARY_PATH\"" >>$drv
+ echo export LD_LIBRARY_PATH >>$drv
+ echo >>$drv
+ echo "if [ -z \"\$SQLPATH\" ]; then" >>$drv
+ echo " SQLPATH=\"$dir\"" >>$drv
+ echo export SQLPATH >>$drv
+ echo "fi" >>$drv
+ echo >>$drv
+fi
+
echo "opt=\`cat $opt\`" >>$drv
echo "eval $scf_root/oracle/oracle --driver $driver \$opt \$*" >>$drv
chmod 755 $drv