Skip to content

Commit

Permalink
Added a -nopath option to the install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg1969 committed Jun 7, 2015
1 parent d451e11 commit 6c49c13
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions install_sedumi.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function install_sedumi( varargin )
% 02110-1301, USA

need_rebuild = any( strcmp( varargin, '-rebuild' ) );
no_path = any( strcmp( varargin, '-nopath' ) );

targets64={...
'bwblkslv.c sdmauxFill.c sdmauxRdot.c',...
Expand Down Expand Up @@ -138,7 +139,11 @@ function install_sedumi( varargin )
else
fprintf( 'found!\n' );
fprintf( ' If for some reason you need to rebuild the binaries, use this command:\n' );
fprintf( ' install_sedumi -rebuild\n' );
if no_path,
fprintf( ' install_sedumi -nopath -rebuild\n' );
else
fprintf( ' install_sedumi -rebuild\n' );
end
end
else
nfound = [1,0];
Expand Down Expand Up @@ -216,7 +221,11 @@ function install_sedumi( varargin )
end
end

if any(nfound),
if ~any(nfound),
disp( line );
disp( 'SeDuMi was not successfully installed.' );
disp( 'Please attempt to correct the errors and try again.' );
elseif ~no_path,
disp( line );
fprintf( 'Adding SeDuMi to the %s path:\n', prog );
ps = pathsep;
Expand Down Expand Up @@ -263,10 +272,6 @@ function install_sedumi( varargin )
disp( line );
disp('SeDuMi has been succesfully installed.' );
disp( 'For more information, type "help sedumi" or see the user guide.')
else
disp( line );
disp( 'SeDuMi was not successfully installed.' );
disp( 'Please attempt to correct the errors and try again.' );
end

fprintf('%s\n\n',line);
Expand Down

0 comments on commit 6c49c13

Please sign in to comment.