Changeset 6089


Ignore:
Timestamp:
09/29/10 18:32:38 (15 years ago)
Author:
Eric.Larour
Message:

forgot to define ISSM_DIR and ISSM_TIER at the same time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/startup.m

    r6088 r6089  
    99%   Copyright Jet Propulsion Laboratory.
    1010
    11 global ISSM_TIER
     11global ISSM_TIER  ISSM_DIR
    1212lastwarn(''); % clear the last warning to focus on the warnings of the ISSM path
    1313
    1414%Recover ISSM_TIER
    1515if ispc,
    16         [status,ISSM_TIER]=system('echo [%ISSM_TIER_WIN%]');
     16        [status1,ISSM_TIER]=system('echo [%ISSM_TIER_WIN%]');
     17        [status2,ISSM_DIR]=system('echo [%ISSM_DIR_WIN%]');
    1718else
    18         [status,ISSM_TIER]=system('echo $ISSM_TIER');
     19        [status1,ISSM_TIER]=system('echo $ISSM_TIER');
     20        [status2,ISSM_DIR]=system('echo $ISSM_DIR');
    1921end
    20 if status~=0,
     22if status1~=0,
    2123        error('startup error message: problem when running ''echo $ISSM_TIER'' shell command');
    2224end
     25if status2~=0,
     26        error('startup error message: problem when running ''echo $ISSM_DIR'' shell command');
     27end
     28
    2329if (length(ISSM_TIER)<=1),
    2430        error('issmdir error message: ''ISSM_TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!');
    2531end
     32if (length(ISSM_DIR)<=1),
     33        error('issmdir error message: ''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!');
     34end
     35
    2636%get rid of useless symbols in the name
     37ISSM_TIER=strtrim(ISSM_TIER);
     38clear status1;
     39
    2740ISSM_DIR=strtrim(ISSM_DIR);
    2841clear status;
Note: See TracChangeset for help on using the changeset viewer.