File: extra-addpath.patch

package info (click to toggle)
dynare 6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 67,648 kB
  • sloc: cpp: 79,109; ansic: 28,917; objc: 12,430; yacc: 4,528; pascal: 1,993; lex: 1,441; sh: 1,129; python: 634; makefile: 628; lisp: 163; xml: 18
file content (26 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
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
@@ -38,6 +38,14 @@ if nargout
     DynareInfo.time.compute = 0;
 end
 
+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 ~nargin || strcmpi(fname,'help')
     skipline()
     disp(['This is Dynare version ' dynare_version() '.'])