Mercurial > hg > octave-lyh
diff scripts/pkg/pkg.m @ 8863:34a821854961
pkg.m (generate_lookfor_cache): generate a DOC file for each directory
author | Jason Riedy <jason@acm.org> |
---|---|
date | Wed, 25 Feb 2009 00:41:40 -0500 |
parents | 5dd06f19e9be |
children | 2c8b2399247b |
line wrap: on
line diff
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -1585,7 +1585,10 @@ endfunction function generate_lookfor_cache (desc) - gen_doc_cache (genpath (desc.dir)); + dirs = split_by (genpath (desc.dir), pathsep ()); + for i = 1 : length (dirs) + gen_doc_cache (fullfile (dirs{i}, "DOC"), dirs{i}); + endfor endfunction ## Make sure the package contains the essential files.