0001 function exesuff=fallbackexeext(exesuffix, exename)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 exesuff=exesuffix;
0020 if(strcmp(exesuff,'.mexa64') & exist([mcpath(exename) exesuff],'file')==0)
0021 exesuff='.mexglx';
0022 end
0023 if(strcmp(exesuff,'.mexmaci64') & exist([mcpath(exename) exesuff],'file')==0)
0024 exesuff='.mexmaci';
0025 end
0026 if(strcmp(exesuff,'.mexmaci') & exist([mcpath(exename) exesuff],'file')==0)
0027 exesuff='.mexmac';
0028 end
0029 if(exist([mcpath(exename) exesuff],'file')==0)
0030 exesuff='';
0031 end
0032
0033 if(exist([mcpath(exename) exesuff],'file')==0)
0034 if(strcmp(exename,'tetgen'))
0035 return;
0036 end
0037 error([ 'The following executable:\n' ...
0038 '\t%s%s\n' ...
0039 'is missing. Please download it from ' ...
0040 'https://github.com/fangq/iso2mesh/tree/master/bin/ ' ...
0041 'and save it to the above path, then rerun the script.\n' ...
0042 ],mcpath(exename),getexeext);
0043 end
0044