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.villemot@ens.fr>
Forwarded: not-needed
Last-Update: 2012-03-19
--- a/matlab/dynare.m
+++ b/matlab/dynare.m
@@ -33,6 +33,14 @@
% 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/share/dynare/matlab
+if exist('OCTAVE_VERSION')
+ warning('on', 'Octave:shadowed-function')
+end
+
if strcmpi(fname,'help')
disp(' ')
disp(['This is dynare version ' dynare_version() '.'])