summaryrefslogtreecommitdiff
path: root/src/bindings/matlab/iio_installer_script.m
blob: 1276729b2247d89edef1f5f2d9bdc37b8cec2ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function installer_script(varargin)
	if nargin > 0
		install = varargin{1}; % use the command line arguement
	else
		install = true; % assume install
	end
	thisDir = fileparts(mfilename('fullpath')); % path to this script

	if install
		pathfunc = @addpath; % add paths for installation
	else
		pathfunc = @rmpath; % remove paths for uninstall
	end

	pathfunc(thisDir);
	savepath;
end