comparison 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
comparison
equal deleted inserted replaced
8862:f71b749be1c1 8863:34a821854961
1583 end_try_catch 1583 end_try_catch
1584 endif 1584 endif
1585 endfunction 1585 endfunction
1586 1586
1587 function generate_lookfor_cache (desc) 1587 function generate_lookfor_cache (desc)
1588 gen_doc_cache (genpath (desc.dir)); 1588 dirs = split_by (genpath (desc.dir), pathsep ());
1589 for i = 1 : length (dirs)
1590 gen_doc_cache (fullfile (dirs{i}, "DOC"), dirs{i});
1591 endfor
1589 endfunction 1592 endfunction
1590 1593
1591 ## Make sure the package contains the essential files. 1594 ## Make sure the package contains the essential files.
1592 function verify_directory (dir) 1595 function verify_directory (dir)
1593 needed_files = {"COPYING", "DESCRIPTION"}; 1596 needed_files = {"COPYING", "DESCRIPTION"};