From 95e1a2336699ef7ac8cdd806f7dca8c100ceeb50 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 11 Nov 2011 13:45:16 +0200 Subject: Set and export LD_LIBRARY_PATH and SQLPATH in Oracle test driver --- build/oracle/configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build/oracle/configure') 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 -- cgit v1.1