Changeset 27560


Ignore:
Timestamp:
02/08/23 12:09:29 (2 years ago)
Author:
jdquinn
Message:

CHG: Print error when library is not found by dynamic linker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m

    r27200 r27560  
    3636
    3737        % Get Gmsh version
    38         [s,r]=system(['gmsh -info 2>&1 | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
    39         if s~=0,
    40                 error(r);
     38        [s,r]=system(['gmsh -info | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
     39        if s~=0 || contains(r, 'dyld'),
     40                error(['gmshplanet: ' r]);
    4141        elseif isempty(r),
    4242                % If this function is called from one of our distributable packages, we
     
    4444                [filepath,name,ext]=fileparts(which('gmsh.'));
    4545                setenv('PATH',[filepath ':' getenv('PATH')]);
    46                 [s,r]=system(['gmsh -info 2>&1 | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
    47                 if s~=0,
    48                         error(r);
     46                [s,r]=system(['gmsh -info | command grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut -d ''.'' -f1']);
     47                if s~=0 || contains(r, 'dyld'),
     48                        error(['gmshplanet: ' r]);
    4949                elseif isempty(r),
    5050                        error('gmshplanet: Gmsh executable not found!');
Note: See TracChangeset for help on using the changeset viewer.