Add toolbox M files, and toolbox constructor.
This commit is contained in:
parent
42276a63b2
commit
3988416ec6
1 changed files with 12 additions and 1 deletions
|
@ -29,7 +29,8 @@ function dl_emacs_support(varargin)
|
|||
error(['The folder: ''',stuff.destination, ''', does not exist.']);
|
||||
end
|
||||
|
||||
coreFiles = { 'matlab-load.el' 'matlab.el' 'mlint.el' };
|
||||
coreFiles = { 'matlab-load.el' 'matlab.el' 'mlint.el' ...
|
||||
'toolbox/emacsinit.m' 'toolbox/opentoline.m' };
|
||||
tlcFiles = { 'tlc.el' };
|
||||
cedetFiles = { 'cedet-matlab.el' 'semantic-matlab.el' ...
|
||||
'semanticdb-matlab.el' 'templates/srecode-matlab.srt' };
|
||||
|
@ -39,11 +40,14 @@ function dl_emacs_support(varargin)
|
|||
|
||||
switch stuff.fileset
|
||||
case 'core'
|
||||
mktoolboxdir
|
||||
getfiles(coreFiles);
|
||||
case 'tlc'
|
||||
mktoolboxdir
|
||||
getfiles(coreFiles);
|
||||
getfiles(tlcFiles);
|
||||
case 'cedet'
|
||||
mktoolboxdir
|
||||
getfiles(coreFiles);
|
||||
mktemplatedir;
|
||||
getfiles(cedetFiles);
|
||||
|
@ -51,6 +55,7 @@ function dl_emacs_support(varargin)
|
|||
mktemplatedir;
|
||||
getfiles(supportFiles);
|
||||
case 'all'
|
||||
mktoolboxdir
|
||||
getfiles(coreFiles);
|
||||
getfiles(tlcFiles);
|
||||
mktemplatedir;
|
||||
|
@ -65,6 +70,12 @@ function dl_emacs_support(varargin)
|
|||
mkdir('templates');
|
||||
end
|
||||
end
|
||||
|
||||
function mktoolboxdir
|
||||
if ~exist('toolbox','dir')
|
||||
mkdir('toolbox');
|
||||
end
|
||||
end
|
||||
|
||||
function getfiles(fList)
|
||||
for i = 1:length(fList)
|
||||
|
|
Loading…
Reference in a new issue