comparison extra/ocs/PKG_ADD @ 12660:8c85ee67be16 octave-forge

fix warnings
author cdf
date Tue, 07 Jul 2015 05:03:42 +0000
parents 4d3b8952afb9
children
comparison
equal deleted inserted replaced
12659:5224320bc96e 12660:8c85ee67be16
2 dirname = fileparts (canonicalize_file_name (mfilename ("fullpath"))); 2 dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
3 3
4 if (! exist (fullfile (dirname, "inst"), "dir")) 4 if (! exist (fullfile (dirname, "inst"), "dir"))
5 ## Run this if the package is installed 5 ## Run this if the package is installed
6 for ii=1:length (dirlist) 6 for ii=1:length (dirlist)
7 addpath (fullfile (dirname, dirlist{ii}), "-end") 7 addpath (fullfile (dirname, "..", dirlist{ii}), "-end")
8 endfor 8 endfor
9 else 9 else
10 ## Run this if we are testing the package without installation 10 ## Run this if we are testing the package without installation
11 for ii=1:length(dirlist) 11 for ii=1:length(dirlist)
12 addpath (fullfile (dirname, "inst", dirlist{ii})) 12 addpath (fullfile (dirname, "inst", dirlist{ii}))