1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Add Dynare root directory to the path at invocation
Add an extra addpath at the top of `dynare.m' so that the symlink in
`/usr/share/octave/site/api-v*/m' works correctly.
Also, temporarily disable the Octave:shadowed-function warning, otherwise we
will have a warning saying that `/usr/share/dynare/matlab/dynare.m' overrides
the symlink.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Last-Update: 2012-03-19
--- a/matlab/dynare.m
+++ b/matlab/dynare.m
@@ -33,6 +33,14 @@ function dynare(fname, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
+if exist('OCTAVE_VERSION')
+ warning('off', 'Octave:shadowed-function')
+end
+addpath /usr/lib/dynare/matlab
+if exist('OCTAVE_VERSION')
+ warning('on', 'Octave:shadowed-function')
+end
+
if strcmpi(fname,'help')
skipline()
disp(['This is dynare version ' dynare_version() '.'])
|