[Bio] / ReleaseTools / RTPath.sh Repository:
ViewVC logotype

Diff of /ReleaseTools/RTPath.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Wed Sep 1 21:02:31 2004 UTC revision 1.2, Thu Sep 2 01:45:02 2004 UTC
# Line 57  Line 57 
57  #       LD_LIBRARY_PATH      as for PYTHONPATH.** Not used  yet, thank heavens  #       LD_LIBRARY_PATH      as for PYTHONPATH.** Not used  yet, thank heavens
58    
59    
60    
61  #  #
62  # precompute a few directory names.  # precompute a few directory names.
63  #  #
# Line 75  Line 76 
76     set overridedirlib=""     set overridedirlib=""
77  fi  fi
78    
   
79  #  #
80  # path  # path
81  #  #
 if [ `echo $PATH | grep RTMARKER` != "" ]; then  
    #RTMARKER sandwhich there...change out the filling  
82    
83     PATH= `echo $path | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin:RTMARKER%g"` )  if [ "`echo $PATH | grep RTMARKER`" != "" ]; then
84       #RTMARKER sandwhich there...change out the filling
85       PATH=`echo $PATH | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin:RTMARKER%g"`
86  else  else
87     #No MARKER...our first time, then     #No MARKER...our first time, then
88       PATH=$PATH:`echo RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin:RTMARKER`
    PATH=$PATH:`echo RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin RTMARKER`  
89  fi  fi
90    
91  #  #
92  # PYTHONPATH  # PYTHONPATH
93  #  #
94    
95  if [ "" -eq "$PYTHONPATH" ]; then  if [ "" = "$PYTHONPATH" ]; then
96   PYTHONPATH=""     PYTHONPATH=`echo RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER`
 fi  
   
 if [ `echo $PYTHONPATH | grep RTMARKER` != "" ]; then  
97    
98     setenv PYTHONPATH `echo $PYTHONPATH | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib RTMARKER%g"`  elif [ "`echo $PYTHONPATH | grep RTMARKER`" != "" ]; then
99       PYTHONPATH=`echo $PYTHONPATH | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER%g"`
100    
101  else  else
102     #No MARKER...our first time, then     PYTHONPATH=${PYTHONPATH}:`echo RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER`
103    
104     setenv PYTHONPATH ${PYTHONPATH}:`echo RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER`  fi
 endif  
105    
106  #  #
107  # cleanup  # cleanup

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3