Skip to content
Snippets Groups Projects
Commit badf5d0d authored by Andrew Cohen's avatar Andrew Cohen
Browse files

reread preamble for every file so it doesn't "grow"

parent 2276709a
Branches
Tags
No related merge requests found
......@@ -41,13 +41,13 @@ if bC
else
flist = dir(fullfile(folder, '*.m'));
strToken='%%%%%%%%%%';
txtPreamble = license.getFileText('.\+license\LicenseHeader.m');
end
for ff=1:length(flist)
if any(strcmp(excludeFiles,flist(ff).name))
continue
end
txt = license.getFileText(fullfile(folder,flist(ff).name));
txtPreamble = license.getFileText('.\+license\LicenseHeader.m');
idxPreamble = find(cellfun(@(x) ~isempty(strfind(x,strToken)),txt),2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment