Skip to content
Snippets Groups Projects
Verified Commit 2cf5c5d0 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Removed Octave's idiosyncrasies.

Matlab Production Server (MPS) fails when onboarding the dynare package
because of `endif` and `endfunction` which are not available in matlab's
syntax.
parent f51f151b
Branches
Tags
No related merge requests found
...@@ -26,12 +26,11 @@ if isequal(flag{1,1}, "Not installed") ...@@ -26,12 +26,11 @@ if isequal(flag{1,1}, "Not installed")
else else
if isequal(flag{1,1}, "Not loaded") if isequal(flag{1,1}, "Not loaded")
pkg("load", package); pkg("load", package);
endif end
if nargin > 1 && compare_versions(desc{1,1}.version, min_version, "<") if nargin > 1 && compare_versions(desc{1,1}.version, min_version, "<")
hasPackage = 0; hasPackage = 0;
else else
hasPackage = 1; hasPackage = 1;
endif end
endif end
endfunction end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment