comparison scripts/testfun/runtests.m @ 18070:ff05d5b70411

Deprecate find_dir_in_path in favor of dir_in_path. * NEWS: Announce deprecation of find_dir_in_path and new function dir_in_path. * scripts/deprecated/find_dir_in_path.m: Add script to call dir_in_path and give deprecation warning. * scripts/deprecated/module.mk: Add deprecated find_dir_in_path.m to build system. * utils.cc (Fdir_in_path): Renamed find_dir_in_path to dir_in_path. * help.m, what.m, rundemos.m, runtests.m: Chane instances of find_dir_in_path to dir_in_path. * utils.cc, variables.cc: Change seealso links to point to dir_in_path. * func.txi: Document dir_in_path function.
author Rik <rik@octave.org>
date Tue, 03 Dec 2013 15:59:56 -0800
parents b675665ce328
children 1e27079409bf
comparison
equal deleted inserted replaced
18069:76006571e45a 18070:ff05d5b70411
40 if (isempty (dirs{1})) 40 if (isempty (dirs{1}))
41 ## Search for directory name in path 41 ## Search for directory name in path
42 if (directory(end) == '/' || directory(end) == '\') 42 if (directory(end) == '/' || directory(end) == '\')
43 directory(end) = []; 43 directory(end) = [];
44 endif 44 endif
45 fullname = find_dir_in_path (directory); 45 fullname = dir_in_path (directory);
46 if (isempty (fullname)) 46 if (isempty (fullname))
47 error ("runtests: DIRECTORY argument must be a valid pathname"); 47 error ("runtests: DIRECTORY argument must be a valid pathname");
48 endif 48 endif
49 dirs = {fullname}; 49 dirs = {fullname};
50 endif 50 endif