From 145fcfdd19a0f89f91a07579146e8345be1989e3 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 3 May 2013 07:33:50 +0200 Subject: [PATCH] reporting: write pdf compilation to stdout in Octave --- matlab/reporting/@report/compile.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matlab/reporting/@report/compile.m b/matlab/reporting/@report/compile.m index 9a7170e5d7..91a3a73768 100644 --- a/matlab/reporting/@report/compile.m +++ b/matlab/reporting/@report/compile.m @@ -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 -- GitLab