[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.3, Fri Sep 3 17:20:49 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  #  #
64    
65  workdir=${PWD}/${RTARCH}  workdir=${PWD}/${RTARCH}
66    
67  reldir=${RTDIST}/releases/${RTCURRENT}/${RTARCH}  . rtConfig
68    #reldir=${RTDIST}/releases/${RTCURRENT}/${RTARCH}
69    reldir=${RTDIST}/releases/${baserelname}/${RTARCH}
70    
71  if [ "" != "$RTSITEOVERRIDE" ]; then  if [ "" != "$RTSITEOVERRIDE" ]; then
72     overridedir=${RTSITEOVERRIDE}/${RTCURRENT}/${RTARCH}     overridedir=${RTSITEOVERRIDE}/${RTCURRENT}/${RTARCH}
# Line 75  Line 78 
78     set overridedirlib=""     set overridedirlib=""
79  fi  fi
80    
   
81  #  #
82  # path  # path
83  #  #
 if [ `echo $PATH | grep RTMARKER` != "" ]; then  
    #RTMARKER sandwhich there...change out the filling  
84    
85     PATH= `echo $path | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin:RTMARKER%g"` )  if [ "`echo $PATH | grep RTMARKER`" != "" ]; then
86       #RTMARKER sandwhich there...change out the filling
87       PATH=`echo $PATH | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin:RTMARKER%g"`
88  else  else
89     #No MARKER...our first time, then     #No MARKER...our first time, then
90       PATH=$PATH:`echo RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin:RTMARKER`
    PATH=$PATH:`echo RTMARKER:${workdir}/bin:${overridedirbin}:${reldir}/bin RTMARKER`  
91  fi  fi
92    
93  #  #
94  # PYTHONPATH  # PYTHONPATH
95  #  #
96    
97  if [ "" -eq "$PYTHONPATH" ]; then  if [ "" = "$PYTHONPATH" ]; then
98   PYTHONPATH=""     PYTHONPATH=`echo RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER`
 fi  
   
 if [ `echo $PYTHONPATH | grep RTMARKER` != "" ]; then  
99    
100     setenv PYTHONPATH `echo $PYTHONPATH | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib RTMARKER%g"`  elif [ "`echo $PYTHONPATH | grep RTMARKER`" != "" ]; then
101       PYTHONPATH=`echo $PYTHONPATH | sed "s%RTMARKER.*RTMARKER%RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER%g"`
102    
103  else  else
104     #No MARKER...our first time, then     PYTHONPATH=${PYTHONPATH}:`echo RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER`
105    
106     setenv PYTHONPATH ${PYTHONPATH}:`echo RTMARKER:${workdir}/lib:${overridedirlib}:${reldir}/lib:RTMARKER`  fi
 endif  
107    
108  #  #
109  # cleanup  # cleanup

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3