File: extra-addpatch.patch

package info (click to toggle)
dynare 4.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 41,356 kB
  • ctags: 15,842
  • sloc: cpp: 77,029; ansic: 29,056; pascal: 13,241; sh: 4,811; objc: 3,061; yacc: 3,013; makefile: 1,479; lex: 1,258; python: 162; lisp: 54; xml: 8
file content (26 lines) | stat: -rw-r--r-- 986 bytes parent folder | download | duplicates (3)
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() '.'])