From: Andrew R. <and...@us...> - 2006-12-19 17:17:07
|
Update of /cvsroot/plplot/plplot/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28285/test Modified Files: test_perl.sh.in Log Message: Set LD_LIBRARY_PATH to ensure that the correct version of plplot is used by PDL for the Perl examples in the build tree. This should have no effect in the install tree. Index: test_perl.sh.in =================================================================== RCS file: /cvsroot/plplot/plplot/test/test_perl.sh.in,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- test_perl.sh.in 2 Dec 2006 16:47:51 -0000 1.6 +++ test_perl.sh.in 19 Dec 2006 17:17:06 -0000 1.7 @@ -29,6 +29,15 @@ # skip 14 because it requires two output files. # skip 17 because it is interactive. # skip 25 and 26 because they are not yet implemented. + +# Ensure correct version of the libraries are picked up in the build +# tree. Has no impact in the install tree. +if [ "$LD_LIBRARY_PATH" == "" ] ; then + export LD_LIBRARY_PATH=../src +else + export LD_LIBRARY_PATH=../src:$LD_LIBRARY_PATH +fi + for index in 01 02 03 04 05 06 07 08 09 10 11 12 13 15 16 18 19 20 21 22 23 24; do $perldir/x${index}.pl -dev $device -o ${OUTPUT_DIR}/x${index}pdl.$dsuffix $options done |