-
Notifications
You must be signed in to change notification settings - Fork 1
/
MakeDistribution.m
48 lines (42 loc) · 1.21 KB
/
MakeDistribution.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
% MakeDistribution.m
disp(' ');
disp('MakeDistribution.m');
sourcePath='~/aEMCodeRepository/';
targetPath='~/aEMCodeDistribution/';
CheckAndMakeDir(targetPath);
folders={['aLibs' filesep 'EMBase']
['aLibs' filesep 'EMCCD']
['aLibs' filesep 'EMIO']
['aLibs' filesep 'EMIOUtils']
['aLibs' filesep 'EMSpec']
['aLibs' filesep 'GriddingLib']
['aLibs' filesep 'MEX' ]
% ['aLibs' filesep 'Others']
% ['aLibs' filesep 'Others' filesep 'bfmatlab']
% 'FourierReconstruction'
'K2Camera'
'MultiExposure'
'Relion'
'Realtime'
'RSC'
'RSC-Apps'
'RSC-utilities'
'RSCPicking'
'RSCReconstruct'
'RSCSimulate'
'RSCVesicleFinder'
'RSCAnalysis'
};
system(['cp ' sourcePath 'startupDistribution.m ' targetPath 'startup.m']);
system(['mkdir ' targetPath 'aLibs']);
for i=1:numel(folders)
name=folders{i};
str=['cp -R ' sourcePath name ' ' targetPath name];
disp(str);
system(str);
end;
cd ~/
str='tar -czf aEMCodeDistribution.tgz aEMCodeDistribution';
disp(str);
system(str);
disp('done.');