Changeset 11916


Ignore:
Timestamp:
04/04/12 15:14:46 (13 years ago)
Author:
schlegel
Message:

allow passing of arguments to overwrite environment variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r11856 r11916  
    11#ISSM_TIER and ISSM_ARCH should have been defined already in your shell settings file (.bashrc, .cshrc, etc ...)
     2
     3#Windows compilers:
     4if [[ "$ISSM_ARCH" == "cygwin-intel" ]]; then
     5        source $ISSM_TIER/externalpackages/windows/windows_environment.sh
     6fi
     7
    28source $ISSM_TIER/etc/environment_variables.sh
    39
    4 #Do we have any command line arguments? (such as MATLAB_DIR=otherdirthandefault), source them before exporting the variables
     10#Do we have any command line arguments? (such as MATLAB_DIR=otherdirthandefault), source them after exporting the variables
    511#to environment.
    612for i in $@
     
    814        eval $i
    915done
    10 
    11 #Windows compilers:
    12 if [[ "$ISSM_ARCH" == "cygwin-intel" ]]; then
    13         source $ISSM_TIER/externalpackages/windows/windows_environment.sh
    14 fi
    15 
    16 source $ISSM_TIER/etc/environment_variables.sh
    1716
    1817#CRON utilities
Note: See TracChangeset for help on using the changeset viewer.