Last change
on this file since 609 was
589,
checked in by sommeria, 12 years ago
|
various minor corrections made
|
File size:
580 bytes
|
Rev | Line | |
---|
[503] | 1 | % check |
---|
[507] | 2 | if isempty(which('mcc')) |
---|
[503] | 3 | msgbox_uvmat('no Matlab compiler toolbox mcc installed') |
---|
| 4 | return |
---|
| 5 | end |
---|
| 6 | display('compiling civ_matlab...') |
---|
[481] | 7 | % commands to compile civ_matlab and eventually other functions |
---|
[589] | 8 | if ~exist('bin','dir') |
---|
| 9 | [success,errormsg]=mkdir('bin'); |
---|
| 10 | if success~=1 |
---|
| 11 | display(errormsg) |
---|
| 12 | end |
---|
| 13 | end |
---|
[430] | 14 | mcc -m -R -nojvm -R -nodisplay civ_matlab.m |
---|
[481] | 15 | system('mv -f civ_matlab bin/'); |
---|
| 16 | system('sed -e ''s#/civ_matlab#/bin/civ_matlab#'' run_civ_matlab.sh > civ_matlab.sh'); |
---|
| 17 | system('rm run_civ_matlab.sh'); |
---|
| 18 | system('chmod +x civ_matlab.sh'); |
---|
[503] | 19 | display('** END **') |
---|
[430] | 20 | |
---|
| 21 | |
---|
[481] | 22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.