diff scripts/pkg/pkg.m @ 8575:f134925a1cfa

m-file implementation of help system
author Soren Hauberg <soren@hauberg.org>
date Thu, 22 Jan 2009 18:22:52 -0500
parents cadc73247d65
children e07e93c04080
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Thu Jan 22 13:59:33 2009 -0500
+++ b/scripts/pkg/pkg.m	Thu Jan 22 18:22:52 2009 -0500
@@ -743,7 +743,8 @@
       copy_files (desc, pdir, global_install);
       create_pkgadddel (desc, pdir, "PKG_ADD", global_install);
       create_pkgadddel (desc, pdir, "PKG_DEL", global_install);
-      finish_installation (desc, pdir, global_install)
+      finish_installation (desc, pdir, global_install);
+      generate_lookfor_cache (desc);
     endfor
   catch
     ## Something went wrong, delete tmpdirs.
@@ -1585,6 +1586,10 @@
   endif
 endfunction
 
+function generate_lookfor_cache (desc)
+  gen_doc_cache (genpath (desc.dir));
+endfunction
+
 ## Make sure the package contains the essential files.
 function verify_directory (dir)
   needed_files = {"COPYING", "DESCRIPTION"};