Mercurial > octave
comparison scripts/deprecated/find_dir_in_path.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 | |
children | 1e27079409bf |
comparison
equal
deleted
inserted
replaced
18069:76006571e45a | 18070:ff05d5b70411 |
---|---|
1 ## Copyright (C) 2013 John W. Eaton | |
2 ## | |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7 ## the Free Software Foundation; either version 3 of the License, or (at | |
8 ## your option) any later version. | |
9 ## | |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
16 ## along with Octave; see the file COPYING. If not, see | |
17 ## <http://www.gnu.org/licenses/>. | |
18 | |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Built-in Function} {} find_dir_in_path (@var{dir}) | |
21 ## @deftypefnx {Built-in Function} {} find_dir_in_path (@var{dir}, "all") | |
22 ## This function has been deprecated. Use @code{dir_in_path} instead. | |
23 ## @seealso{dir_in_path} | |
24 ## @end deftypefn | |
25 | |
26 ## Deprecated in version 4.2 | |
27 | |
28 function retval = find_dir_in_path (varargin) | |
29 | |
30 persistent warned = false; | |
31 if (! warned) | |
32 warned = true; | |
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"); | |
35 endif | |
36 | |
37 retval = dir_in_path (varargin{:}); | |
38 | |
39 endfunction | |
40 |