Changeset 34342


Ignore:
Timestamp:
09/11/20 13:52:19 (7 months ago)
Author:
davidb
Message:

Added block to set GSDLOS

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.