source: trunk/src/compile_civ_matlab.m @ 679

Last change on this file since 679 was 646, checked in by sommeria, 12 years ago

various update, bugs to be expected

File size: 580 bytes
RevLine 
[646]1% check
2if isempty(which('mcc'))
3    msgbox_uvmat('no Matlab compiler toolbox mcc installed')
4    return
5end
6display('compiling civ_matlab...')
7% commands to compile civ_matlab and eventually other functions
8if ~exist('bin','dir')
9    [success,errormsg]=mkdir('bin');
10    if success~=1
11        display(errormsg)
12    end
13end
14mcc -m -R -nojvm -R -nodisplay civ_matlab.m
15system('mv -f civ_matlab bin/');
16system('sed -e ''s#/civ_matlab#/bin/civ_matlab#'' run_civ_matlab.sh > civ_matlab.sh');
17system('rm run_civ_matlab.sh');
18system('chmod +x civ_matlab.sh');
19display('** END **')
20
21
22
Note: See TracBrowser for help on using the repository browser.