Commit 52a55abb authored by Thomas Rogers Shaw's avatar Thomas Rogers Shaw
Browse files

change makepackage.m to check version number

previous behavior was that it set the version number every time,
which could cause pain with commits not matching up.
parent 49a1cd1b
......@@ -16,5 +16,7 @@ end
[~,outfname,~] = fileparts(fname);
outfname = join([outfname, build, '.mltbx'], '');
matlab.addons.toolbox.toolboxVersion(fname,version)
matlab.addons.toolbox.packageToolbox(fname,outfname)
\ No newline at end of file
if ~strcmp(matlab.addons.toolbox.toolboxVersion(fname), version)
error('toolbox version and specified version do not match')
end
matlab.addons.toolbox.packageToolbox(fname,outfname)
Supports Markdown
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