-
Notifications
You must be signed in to change notification settings - Fork 23
/
check_dependencies.m
35 lines (32 loc) · 944 Bytes
/
check_dependencies.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% check for simulator on path
if isempty(which('simulator'))
check_simulator = false ;
warning(['The RTD simulator is not on your path! Please download it here: ',...
'https://github.com/skousik/simulator'])
else
disp('The simulator is on the MATLAB path')
check_simulator = true ;
end
% check for RTD
try
is_RTD_on_path()
check_RTD = true ;
catch
check_RTD = false ;
warning(['The RTD parent repo is not on your path! Please download it here: ',...
'https://github.com/skvaskov/RTD'])
end
% check for spotless
try
x = msspoly('x') ;
check_spotless = true ;
catch
warning(['The spotless repo is not on your path! Please download ithere: ',...
'https://github.com/spot-toolbox/spotless'])
check_spotless = false ;
end
if check_simulator && check_RTD && check_spotless
disp('RTD tutorial is ready to roll!')
else
warning('RTD tutorial depencies are missing!')
end