Unverified Commit 92e68f6e authored by Stuart Sides's avatar Stuart Sides Committed by GitHub
Browse files

Added new startup scripts that don't blast existing ISIS environment … (#3927)

* Added new startup scripts that don't blast existing ISIS environment variables

* Update isisStartup.csh
parent f3fa3596
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
#!/bin/csh
################################################################################
# This file should be sourced within your current shell using the "source"
# command.
#
# On the command line type:
# > setenv ISISROOT ????
# > source isis3Startup.csh
#
# Replace the "????" in the above command line with the path you installed
# the Isis distribution
#
################################################################################

if ($?ISISROOT == 0) then
  echo "ISISROOT environment variable is not set"
  exit 1
endif

if ($?ISISDATA == 0) then
  if (-d $ISISROOT/../data) then
    setenv ISISDATA $ISISROOT/../isis_data
  else
    setenv ISISDATA /usgs/cpkgs/isis3/isis_data
  endif
endif

if ($?ISISTESTDATA == 0) then
  if (-d $ISISROOT/../testData) then
    setenv ISISTESTDATA $ISISROOT/../testData
  else
    setenv ISISTESTDATA /usgs/cpkgs/isis3/isis_testData
  endif
endif

if ( -f $ISISROOT/scripts/tabcomplete.csh ) then
  source $ISISROOT/scripts/tabcomplete.csh;
endif
+41 −0
Original line number Diff line number Diff line
#!/bin/bash
#
# This file should be executed within your current shell using the "." or "source"
# command.
#
# On the command line type:
# > set ISISROOT=????
# > . isis3Startup.sh
#
# Replace the "????" in the above command line with the path where you installed
# the Isis distribution
#
if [ ! "$ISISROOT" ]; then
  ISISROOT=/usgs/pkgs/isis3/install
  export ISISROOT
fi

if [ ! "$ISISDATA" ]; then
  if [ -d $ISISROOT/../data ]; then
    ISISDATA=$ISISROOT/../isis_data
  else
    ISISDATA=/usgs/cpkgs/isis3/isis_data
  fi
  export ISISDATA
fi

if [ ! "$ISISTESTDATA" ]; then
  if [ -d $ISISROOT/../testData ]; then
    ISISTESTDATA=$ISISROOT/../testData
  else
    ISISTESTDATA=/usgs/cpkgs/isis3/isis_testData
  fi
  export ISISTESTDATA
fi

if [ "$PATH" ]; then
  PATH="${PATH}:${ISISROOT}/bin"
else
  PATH="$ISISROOT/bin"
fi
export PATH