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.']);
|
error(['The folder: ''',stuff.destination, ''', does not exist.']);
|
||||||
end
|
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' };
|
tlcFiles = { 'tlc.el' };
|
||||||
cedetFiles = { 'cedet-matlab.el' 'semantic-matlab.el' ...
|
cedetFiles = { 'cedet-matlab.el' 'semantic-matlab.el' ...
|
||||||
'semanticdb-matlab.el' 'templates/srecode-matlab.srt' };
|
'semanticdb-matlab.el' 'templates/srecode-matlab.srt' };
|
||||||
|
@ -39,11 +40,14 @@ function dl_emacs_support(varargin)
|
||||||
|
|
||||||
switch stuff.fileset
|
switch stuff.fileset
|
||||||
case 'core'
|
case 'core'
|
||||||
|
mktoolboxdir
|
||||||
getfiles(coreFiles);
|
getfiles(coreFiles);
|
||||||
case 'tlc'
|
case 'tlc'
|
||||||
|
mktoolboxdir
|
||||||
getfiles(coreFiles);
|
getfiles(coreFiles);
|
||||||
getfiles(tlcFiles);
|
getfiles(tlcFiles);
|
||||||
case 'cedet'
|
case 'cedet'
|
||||||
|
mktoolboxdir
|
||||||
getfiles(coreFiles);
|
getfiles(coreFiles);
|
||||||
mktemplatedir;
|
mktemplatedir;
|
||||||
getfiles(cedetFiles);
|
getfiles(cedetFiles);
|
||||||
|
@ -51,6 +55,7 @@ function dl_emacs_support(varargin)
|
||||||
mktemplatedir;
|
mktemplatedir;
|
||||||
getfiles(supportFiles);
|
getfiles(supportFiles);
|
||||||
case 'all'
|
case 'all'
|
||||||
|
mktoolboxdir
|
||||||
getfiles(coreFiles);
|
getfiles(coreFiles);
|
||||||
getfiles(tlcFiles);
|
getfiles(tlcFiles);
|
||||||
mktemplatedir;
|
mktemplatedir;
|
||||||
|
@ -65,6 +70,12 @@ function dl_emacs_support(varargin)
|
||||||
mkdir('templates');
|
mkdir('templates');
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function mktoolboxdir
|
||||||
|
if ~exist('toolbox','dir')
|
||||||
|
mkdir('toolbox');
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function getfiles(fList)
|
function getfiles(fList)
|
||||||
for i = 1:length(fList)
|
for i = 1:length(fList)
|
||||||
|
|
Loading…
Reference in a new issue