Changeset 160 for prextra


Ignore:
Timestamp:
09/30/22 20:53:36 (2 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/toolbox_export.m

    r157 r160  
    6464
    6565% use a copy of TOOLBOX for cleaning and compression
    66 disp('    Copying, cleaning and compression make take some time ...')
     66disp('    Copying, cleaning and compression may take some time ...')
    6767copyfile(toolboxdir,fullfile(zipdir,toolbox));
    6868toolboxdir = fullfile(zipdir,toolbox);
     
    7373sdir      = dirnames(toolboxdir);
    7474for j=1:numel(sdir) % remove all hidden dirs (.svn)
    75   rmdir(fullfile(fullfile(toolboxdir,sdir{j}),'.svn'),'s');
     75  dirnam = fullfile(fullfile(toolboxdir,sdir{j}),'.svn');
     76  if exist(dirnam,'dir') == 7
     77    rmdir(dirnam,'s');
     78  end
    7679end
    7780if ~isempty(exclude)
Note: See TracChangeset for help on using the changeset viewer.