comparison +mpm/verify.m @ 36:647cd9e354bf

Change variable naming in mpm.verify to make it more concisten with the other scripts
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 02 Nov 2018 13:21:20 +0100
parents 02c290e2018c
children
comparison
equal deleted inserted replaced
35:3a28f6de13c2 36:647cd9e354bf
1 % Check if the current proejct settings are correct 1 % Check if the current proejct settings are correct
2 % The right version is in the path 2 % The right version is in the path
3 % The right version is at the top of the path 3 % The right version is at the top of the path
4 % 4 %
5 % Useful to put at the top of some scripts 5 % Useful to put at the top of some scripts
6 function verify(d) 6 function verify(projectFolder)
7 if ~exist('d', 'var') || isempty(d) 7 if ~exist('projectFolder', 'var') || isempty(projectFolder)
8 d = pwd; 8 projectFolder = pwd;
9 end 9 end
10 10
11 m = mpm.MatlabPathManager(); 11 m = mpm.MatlabPathManager();
12 if ~m.verify(d) 12 if ~m.verify(projectFolder)
13 error('Subpaths are not correctly loaded. Try running mpm.checkin()'); 13 error('Subpaths are not correctly loaded. Try running mpm.checkin()');
14 end 14 end
15 end 15 end