diff options
Diffstat (limited to 'src/bindings/matlab/iio_installer_script.m')
-rw-r--r-- | src/bindings/matlab/iio_installer_script.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bindings/matlab/iio_installer_script.m b/src/bindings/matlab/iio_installer_script.m new file mode 100644 index 0000000..1276729 --- /dev/null +++ b/src/bindings/matlab/iio_installer_script.m @@ -0,0 +1,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 |