## Copyright (C) 2008 Soren Hauberg ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or (at ## your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; see the file COPYING. If not, see ## . ## -*- texinfo -*- ## @deftypefn {Function File} gen_all_caches_in_path () ## Generate documentation caches for all functions in the current path. ## ## The function traverses the current path and generates a documentation cache ## for all currently available functions. ## ## This function should be executed during the installation of GNU Octave. ## ## @seealso{gen_doc_cache, path} ## @end deftypefn function gen_all_caches_in_path () p = path (); idx = find (p == pathsep ()); prev_idx = 1; for n = 1:length (idx) f = p (prev_idx:idx (n)-1); gen_doc_cache (f); prev_idx = idx (n) + 1; endfor endfunction