Changeset 25196 for issm/trunk-jpl/src/m/coordsystems/gmtmask.m
- Timestamp:
- 07/02/20 10:53:58 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/coordsystems/gmtmask.m
r22821 r25196 36 36 37 37 %Avoid bypassing of the ld library path by Matlab (:() 38 % 39 % TODO: Do we really need this (we can/already set it in etc/environment.sh)? 38 40 if ismac, 39 41 dyld_library_path_old=getenv('DYLD_LIBRARY_PATH'); … … 42 44 43 45 %Find path to gmt, list all possible known paths to gmt (you may need to add yours to the list) 44 paths = {[issmdir() '/bin/gmt'],[issmdir()'/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'};46 gmtpaths = {[issmdir '/bin/gmt'],[issmdir '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'}; 45 47 gmtpath = ''; 46 for i= paths48 for i=gmtpaths 47 49 if exist(i{1},'file'), 48 50 gmtpath = i{1}; … … 51 53 end 52 54 if isempty(gmtpath), 53 error('gmt not found , make sure it is properly installed, or add its path to this file (line 44)');55 error('gmt not found! Make sure it is properly installed, or add its path to this file.'); 54 56 end 55 57
Note:
See TracChangeset
for help on using the changeset viewer.