Mercurial > forge
view extra/ocs/PKG_ADD @ 12660:8c85ee67be16 octave-forge
fix warnings
author | cdf |
---|---|
date | Tue, 07 Jul 2015 05:03:42 +0000 |
parents | 4d3b8952afb9 |
children |
line wrap: on
line source
dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"}; dirname = fileparts (canonicalize_file_name (mfilename ("fullpath"))); if (! exist (fullfile (dirname, "inst"), "dir")) ## Run this if the package is installed for ii=1:length (dirlist) addpath (fullfile (dirname, "..", dirlist{ii}), "-end") endfor else ## Run this if we are testing the package without installation for ii=1:length(dirlist) addpath (fullfile (dirname, "inst", dirlist{ii})) addpath (fullfile (dirname, "src")) endfor endif warning ("off", "Octave:fopen-file-in-path"); clear dirlist dirname