reporting: write pdf compilation to stdout in Octave

time-shift
Houtan Bastani 2013-05-03 07:33:50 +02:00
parent e8f9546210
commit a90618f748
1 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,12 @@ if isempty(compiler)
compiler = strtrim(compiler);
o.compiler = compiler;
end
[status output] = system([compiler ' ./' o.filename], '-echo');
if exist('OCTAVE_VERSION')
status = system([compiler ' ./' o.filename], 0);
else
status = system([compiler ' ./' o.filename], '-echo');
end
[junk, rfn, junk] = fileparts(o.filename);
if status ~= 0