Mercurial > octave-nkf
comparison scripts/miscellaneous/what.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 | 427412d40f1a |
children | 1e27079409bf |
comparison
equal
deleted
inserted
replaced
18069:76006571e45a | 18070:ff05d5b70411 |
---|---|
35 if (isempty (dtmp)) | 35 if (isempty (dtmp)) |
36 ## Search for directory name in path | 36 ## Search for directory name in path |
37 if (d(end) == '/' || d(end) == '\') | 37 if (d(end) == '/' || d(end) == '\') |
38 d(end) = []; | 38 d(end) = []; |
39 endif | 39 endif |
40 dtmp = find_dir_in_path (d); | 40 dtmp = dir_in_path (d); |
41 if (isempty (dtmp)) | 41 if (isempty (dtmp)) |
42 error ("what: could not find the directory %s", d); | 42 error ("what: could not find the directory %s", d); |
43 endif | 43 endif |
44 endif | 44 endif |
45 d = dtmp; | 45 d = dtmp; |