Change 14891 by jhi@alpha on 2002/02/27 01:11:13
Only modify LD_LIBRARY_PATH in case there are directories.
Affected files ...
.... //depot/perl/hints/dec_osf.sh#41 edit
Differences ...
==== //depot/perl/hints/dec_osf.sh#41 (text) ====
Index: perl/hints/dec_osf.sh
--- perl/hints/dec_osf.sh.~1~ Tue Feb 26 18:15:05 2002
+++ perl/hints/dec_osf.sh Tue Feb 26 18:15:05 2002
@@ -322,11 +322,13 @@
if test -n "`ls $p/libdb.so* 2>/dev/null`"; then
needusrshlib=yes
fi
- echo "Appending $p to LD_LIBRARY_PATH." >& 4
- case "$LD_LIBRARY_PATH" in
- '') LD_LIBRARY_PATH=$p ;;
- *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
- esac
+ if test -d $p; then
+ echo "Appending $p to LD_LIBRARY_PATH." >& 4
+ case "$LD_LIBRARY_PATH" in
+ '') LD_LIBRARY_PATH=$p ;;
+ *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
+ esac
+ fi
done
echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4
# This is evil but I can't think of a nice workaround:
End of Patch.