Changeset 992 for trunk/src/compile.m


Ignore:
Timestamp:
Feb 2, 2017, 10:37:19 PM (7 years ago)
Author:
g7moreau
Message:
  • replace ;% by ; %
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/compile.m

    r977 r992  
    2525
    2626function compile (FctName,SubfctPath)
    27 hh=[];% handles of message display window
     27hh=[]; % handles of message display window
    2828if isempty(which('mcc'))
    2929    msgbox_uvmat('ERROR','no Matlab compiler toolbox mcc installed')
     
    4141end
    4242if ~isempty(SubfctPath)
    43     SubfctPath=['-I ' SubfctPath];%string indicating the option of including the path SubfctPath
     43    SubfctPath=['-I ' SubfctPath]; % string indicating the option of including the path SubfctPath
    4444end
    4545[mcrmajor, mcrminor] = mcrversion;   
     
    4747FctNameVersion=[FctName,'_',MCRROOT];
    4848%hver=ver('MATLAB');
    49 %FctNameVersion=[FctName '_MCRROOT' regexprep(hver.Version,'\.','')];%suppress the dot in version number
     49%FctNameVersion=[FctName '_MCRROOT' regexprep(hver.Version,'\.','')]; % suppress the dot in version number
    5050try
    5151    disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])
    5252    eval(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])% compile the source file [FctName .m], which produces a binary file FctName and a cmd file [run_' FctName '.sh]
    53     system(['mv -f ' FctName ' bin/']);%move the binary file FctName to the subdir /bin
    54     system(['sed -e ''''s#/' FctName '#/bin/' FctName '#'''' run_' FctName '.sh > ' FctNameVersion '.sh']);%modify the cmd file and copy it to [FctName '.sh']
    55     system(['rm run_' FctName '.sh']);% remove the initial cmd file [run_' FctName '.sh]
     53    system(['mv -f ' FctName ' bin/']); % move the binary file FctName to the subdir /bin
     54    system(['sed -e ''''s#/' FctName '#/bin/' FctName '#'''' run_' FctName '.sh > ' FctNameVersion '.sh']); % modify the cmd file and copy it to [FctName '.sh']
     55    system(['rm run_' FctName '.sh']); % remove the initial cmd file [run_' FctName '.sh]
    5656    system(['chmod +x ' FctNameVersion '.sh']); % set the cmd file to 'executable'
    5757catch ME
Note: See TracChangeset for help on using the changeset viewer.