Changeset 149
- Timestamp:
- 01/09/20 00:02:43 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/toolbox_export.m
r147 r149 1 1 %TOOLBOX_EXPORT Prepare toolbox for export, archive and send to website 2 2 % 3 % TOOLBOX_EXPORT(TOOLBOX,COPYFLAG,EXPORTDIR )3 % TOOLBOX_EXPORT(TOOLBOX,COPYFLAG,EXPORTDIR,EXCLUDE) 4 4 % 5 % zip and copy toolbox to PRTools server and erchive in EXPORTDIR 5 % zip and copy TOOLBOX to PRTools server and archive in EXPORTDIR. In case 6 % COPYFLAG is false (default) copying to the server is skipped. 6 7 % 7 % COPYFLAG: TRUE: copy, FALSE: just zip. default TRUE 8 % The tooolbox version as stored in the Contents.m file is interactively 9 % updated. In addition a TOOLBOX_version.txt file is created or updated on 10 % the server. Sub-directories of TOOLBOX given as a cell array in EXCLUDE 11 % will not be stored in the zip-file. Other sub-directories will compressed 12 % as they are. In the main toolbox directory just the m-files are used. 13 % 14 % TOOLBOX should be in the search path and has to be given by the name 15 % only. 16 % 17 % The default for EXPORTDIR is 'K:\insy\PRLab\Matlab\prtools_export' 18 19 % Copyright: R.P.W. Duin 8 20 9 21 function toolbox_export(toolbox,copyflag,exportdir,exclude) … … 46 58 n = strmatch(exclude{j},sdir); 47 59 if isempty(n) 48 error(['Subdirectory ' exclude{j} ' does not exist']) 60 warning(['Subdirectory ' exclude{j} ' does not exist and is skipped']) 61 else 62 sdir(n) = []; 49 63 end 50 sdir(n) = [];51 64 end 52 65 end … … 138 151 subdirs = cellstr(subdirs); 139 152 else 140 subdirs = [];153 subdirs = {''}; 141 154 end 142 155 if nf > 0
Note: See TracChangeset
for help on using the changeset viewer.