Changeset 6089
- Timestamp:
- 09/29/10 18:32:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/startup.m
r6088 r6089 9 9 % Copyright Jet Propulsion Laboratory. 10 10 11 global ISSM_TIER 11 global ISSM_TIER ISSM_DIR 12 12 lastwarn(''); % clear the last warning to focus on the warnings of the ISSM path 13 13 14 14 %Recover ISSM_TIER 15 15 if 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%]'); 17 18 else 18 [status,ISSM_TIER]=system('echo $ISSM_TIER'); 19 [status1,ISSM_TIER]=system('echo $ISSM_TIER'); 20 [status2,ISSM_DIR]=system('echo $ISSM_DIR'); 19 21 end 20 if status ~=0,22 if status1~=0, 21 23 error('startup error message: problem when running ''echo $ISSM_TIER'' shell command'); 22 24 end 25 if status2~=0, 26 error('startup error message: problem when running ''echo $ISSM_DIR'' shell command'); 27 end 28 23 29 if (length(ISSM_TIER)<=1), 24 30 error('issmdir error message: ''ISSM_TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!'); 25 31 end 32 if (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!'); 34 end 35 26 36 %get rid of useless symbols in the name 37 ISSM_TIER=strtrim(ISSM_TIER); 38 clear status1; 39 27 40 ISSM_DIR=strtrim(ISSM_DIR); 28 41 clear status;
Note:
See TracChangeset
for help on using the changeset viewer.