Commit badf5d0d authored by Andrew Cohen's avatar Andrew Cohen

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

parent 2276709a
......@@ -41,14 +41,14 @@ 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);
if length(idxPreamble)~=2
......
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