Commit 2b386bf1 authored by Jonas Stienen's avatar Jonas Stienen

Creating target matlab script if non-existant

parent 360e6a23
......@@ -18,6 +18,10 @@ if exist( deploy_dir, 'dir' ) ~= 7
error( 'Deploy dir ''%s'' does not exist. Please build and install VAMatlab first.', deploy_dir )
end
if exist( script_dir, 'dir' ) ~= 7
mkdir( script_dir );
end
if exist( [ 'VAMatlab' mexext ], 'file' )
warning( 'VAMatlab already found at location "%s", are you sure to build itaVA against this executable? Will proceed now.', which( 'VAMatlab' ) )
else
......@@ -33,9 +37,6 @@ end
% Parameters
templateFile = 'itaVA.m.proto';
outputFile = fullfile( script_dir, 'itaVA.m' );
if exist( script_dir, 'dir' ) ~= 7
mkdir( script_dir );
end
fprintf( 'Generating code for itaVA Matlab class ''%s'' ...\n', outputFile );
code = fileread( templateFile );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment