comparison scripts/deprecated/find_dir_in_path.m @ 18074:1e27079409bf

Rename function dir_in_path to dir_in_loadpath. * NEWS: Announce new function in 4.2. * scripts/deprecated/find_dir_in_path.m: Call dir_in_loadpath as replacement. * utils.cc (Fdir_in_loadpath): Renamed dir_in_path to dir_in_loadpath. * help.m, what.m, rundemos.m, runtests.m: Chane instances of dir_in_path to dir_in_loadpath. * utils.cc, variables.cc: Change seealso links to point to dir_in_loadpath. * func.txi: Document dir_in_loadpath function.
author Rik <rik@octave.org>
date Wed, 04 Dec 2013 08:23:42 -0800
parents ff05d5b70411
children ebd27d8c63fd
comparison
equal deleted inserted replaced
18072:b4b5ee91561a 18074:1e27079409bf
17 ## <http://www.gnu.org/licenses/>. 17 ## <http://www.gnu.org/licenses/>.
18 18
19 ## -*- texinfo -*- 19 ## -*- texinfo -*-
20 ## @deftypefn {Built-in Function} {} find_dir_in_path (@var{dir}) 20 ## @deftypefn {Built-in Function} {} find_dir_in_path (@var{dir})
21 ## @deftypefnx {Built-in Function} {} find_dir_in_path (@var{dir}, "all") 21 ## @deftypefnx {Built-in Function} {} find_dir_in_path (@var{dir}, "all")
22 ## This function has been deprecated. Use @code{dir_in_path} instead. 22 ## This function has been deprecated. Use @code{dir_in_loadpath} instead.
23 ## @seealso{dir_in_path} 23 ## @seealso{dir_in_loadpath}
24 ## @end deftypefn 24 ## @end deftypefn
25 25
26 ## Deprecated in version 4.2 26 ## Deprecated in version 4.2
27 27
28 function retval = find_dir_in_path (varargin) 28 function retval = find_dir_in_path (varargin)
29 29
30 persistent warned = false; 30 persistent warned = false;
31 if (! warned) 31 if (! warned)
32 warned = true; 32 warned = true;
33 warning ("Octave:deprecated-function", 33 warning ("Octave:deprecated-function",
34 "find_dir_in_path is obsolete and will be removed from a future version of Octave, please use dir_in_path instead"); 34 "find_dir_in_path is obsolete and will be removed from a future version of Octave, please use dir_in_loadpath instead");
35 endif 35 endif
36 36
37 retval = dir_in_path (varargin{:}); 37 retval = dir_in_loadpath (varargin{:});
38 38
39 endfunction 39 endfunction
40 40