https://github.com/anirudhamajumdar/spotless
Raw File
Tip revision: e27bd32f67c3a8a6bfec605f7f065217f7583dc8 authored by anirudhamajumdar on 05 September 2016, 22:13:06 UTC
Merge pull request #1 from spot-toolbox/master
Tip revision: e27bd32
spot_install.m
% installation script for SPOT

potdir=pwd;
n=length(potdir);
s=filesep;                    % slash character
if ~strcmp('spot',potdir(n-3:n))||((s~='\')&&(s~='/')), 
    %    error('Please install SPOT in a "spot" directory!')
end
fprintf('\n Installing SPOT in %s:\n updating the path...',potdir)
addpath(potdir);
addpath([potdir s 'mex']);
addpath([potdir s 'util']);
addpath([potdir s 'spotopt']);
addpath([potdir s 'spotopt/util']);
addpath([potdir s 'spotopt/solvers']);
addpath([potdir s 'mss']);
fprintf('\n compiling the binaries...')
cd('mex');
mex spot_gset.c 
mex spot_mex_msspoly_check_canonical.cpp
mex spot_mex_msspoly_make_canonical_combine_powers.cpp spot_mex_helpers.cpp
mex spot_mex_msspoly_make_canonical_combine_coeffs.cpp spot_mex_helpers.cpp
cd('..');
fprintf('\n Done.\n')
back to top