Skip to content
Snippets Groups Projects
Commit 5e8f7d7f authored by Federico Felici's avatar Federico Felici
Browse files

Clean dd from git root level

parent 49c134ab
No related branches found
No related tags found
No related merge requests found
...@@ -48,12 +48,15 @@ classdef SCD ...@@ -48,12 +48,15 @@ classdef SCD
function clean_dd() function clean_dd()
% Close all data open dictionaries % Close all data open dictionaries
fprintf('Closing all data dictionaries and discarding changes') fprintf('Closing all data dictionaries and discarding changes\n')
Simulink.data.dictionary.closeAll('-discard'); Simulink.data.dictionary.closeAll('-discard');
% Cleans unversioned data dictionaries % Cleans unversioned data dictionaries
fprintf('Cleaning unversioned data dictionaries for clean test\n') fprintf('Cleaning unversioned data dictionaries for clean test\n')
[~,s] = system('git rev-parse --show-toplevel'); % get top-level dir
oldpwd = pwd; cd(deblank(s));
system('git clean -xf *.sldd'); % clean local sldd system('git clean -xf *.sldd'); % clean local sldd
system('git submodule foreach --quiet ''git clean -fx *.sldd'''); % clean submodules too system('git submodule foreach --quiet ''git clean -fx *.sldd'''); % clean submodules too
cd(oldpwd)
end end
function SCDexps = getexpcodecontainer() function SCDexps = getexpcodecontainer()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment