Show
Ignore:
Timestamp:
11.09.2020 13:52:19 (7 weeks ago)
Author:
davidb
Message:

Added block to set GSDLOS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/mars-src/trunk/setup.bash

    r34339 r34342  
    66fulldir=${fulldir%/.} 
    77 
    8 #source cascade-make/lib/cascade-lib.bash 
     8if [ "x$GSDLHOME" = "x" ] ; then 
     9  if [ -e ../../gs3-setup.sh ] ; then 
     10    export gsopt_noexts=1 && pushd ../.. && source ./gs3-setup.sh && popd  
     11    export gsopt_noexts= 
     12  elif [ -e ../../setup.bash ] ; then 
     13    export gsopt_noexts=1 && pushd ../.. && source ./setup.bash && popd  
     14    export gsopt_noexts= 
     15  else 
     16    # backstop 
     17    GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'` 
     18    # check for running bash under cygwin 
     19    if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ; then 
     20      GSDLOS=windows 
     21    fi  
     22 
     23  fi 
     24fi 
    925 
    1026if [ "x$GEXT_MARS" = "x" ] ; then