[svn:p5ee] r3593 - p5ee/trunk/App-Options/bin

[email protected]
Newsgroups perl.cvs.p5ee
Message-ID <[email protected]>
Author: spadkins
Date: Thu Mar  2 22:31:06 2006
New Revision: 3593

Modified:
   p5ee/trunk/App-Options/bin/prefix

Log:
add default values for MANPATH, LD_LIBRARY_PATH

Modified: p5ee/trunk/App-Options/bin/prefix
==============================================================================
--- p5ee/trunk/App-Options/bin/prefix	(original)
+++ p5ee/trunk/App-Options/bin/prefix	Thu Mar  2 22:31:06 2006
@@ -148,6 +148,10 @@
 
       # Remove old references from the LD_LIBRARY_PATH
       OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
+      if [ "$OLD_LD_LIBRARY_PATH" = "" ]
+      then
+          OLD_LD_LIBRARY_PATH="/usr/local/lib:/usr/lib:/lib"
+      fi
       export LD_LIBRARY_PATH=""
       export LD_LIBRARY_PATH=`echo $OLD_LD_LIBRARY_PATH | \
              sed -e "s/^:*/:/" \
@@ -160,6 +164,10 @@
 
       # Remove old references from the LIBPATH
       OLD_LIBPATH="$LIBPATH"
+      if [ "$OLD_LIBPATH" = "" ]
+      then
+          OLD_LIBPATH="/usr/local/lib:/usr/lib:/lib"
+      fi
       export LIBPATH=""
       export LIBPATH=`echo $OLD_LIBPATH | \
              sed -e "s/^:*/:/" \
@@ -171,6 +179,10 @@
       unset OLD_LIBPATH
 
       # Remove old references from the MANPATH
+      if [ "$MANPATH" = "" ]
+      then
+          MANPATH="/usr/local/man:/usr/share/man:/usr/man:/man"
+      fi
       export MANPATH=`echo $MANPATH | \
              sed -e "s/^:*/:/" \
                  -e "s/:*$/:/" \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.