Changeset 149


Ignore:
Timestamp:
01/09/20 00:02:43 (5 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/toolbox_export.m

    r147 r149  
    11%TOOLBOX_EXPORT Prepare toolbox for export, archive and send to website
    22%
    3 % TOOLBOX_EXPORT(TOOLBOX,COPYFLAG,EXPORTDIR)
     3% TOOLBOX_EXPORT(TOOLBOX,COPYFLAG,EXPORTDIR,EXCLUDE)
    44%
    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.
    67%
    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
    820
    921function toolbox_export(toolbox,copyflag,exportdir,exclude)
     
    4658    n = strmatch(exclude{j},sdir);
    4759    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) = [];
    4963    end
    50     sdir(n) = [];
    5164  end
    5265end
     
    138151  subdirs = cellstr(subdirs);
    139152else
    140         subdirs = [];
     153        subdirs = {''};
    141154end
    142155if nf > 0
Note: See TracChangeset for help on using the changeset viewer.