Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
reporting
Commits
57a3b9e9
Commit
57a3b9e9
authored
Jul 07, 2014
by
Houtan Bastani
Browse files
reporting: add option to suppress compiler output
parent
fad71ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
@report/compile.m
View file @
57a3b9e9
...
...
@@ -32,6 +32,7 @@ function o = compile(o, varargin)
opts
.
compiler
=
o
.
compiler
;
opts
.
showReport
=
true
;
opts
.
showOutput
=
true
;
if
nargin
>
1
if
round
((
nargin
-
1
)/
2
)
~=
(
nargin
-
1
)/
2
...
...
@@ -54,6 +55,7 @@ end
assert
(
ischar
(
opts
.
compiler
),
'@report.compile: compiler file must be a string'
);
assert
(
islogical
(
opts
.
showReport
),
'@report.compile: showReport must be either true or false'
);
assert
(
islogical
(
opts
.
showOutput
),
'@report.compile: showOutput must be either true or false'
);
if
~
exist
(
o
.
fileName
,
'file'
)
o
.
write
();
...
...
@@ -85,7 +87,11 @@ if isempty(opts.compiler)
o
.
compiler
=
opts
.
compiler
;
end
status
=
system
([
opts
.
compiler
' '
options
middle
o
.
fileName
],
echo
);
if
opts
.
showOutput
status
=
system
([
opts
.
compiler
' '
options
middle
o
.
fileName
],
echo
);
else
[
status
,
junk
]
=
system
([
opts
.
compiler
' '
options
middle
o
.
fileName
]);
end
[
junk
,
rfn
,
junk
]
=
fileparts
(
o
.
fileName
);
if
status
~=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment