-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/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 |