diff scripts/help/gen_doc_cache.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 31f864877246
children 6994961bf1f4
line wrap: on
line diff
--- a/scripts/help/gen_doc_cache.m	Wed Feb 25 00:39:09 2009 -0500
+++ b/scripts/help/gen_doc_cache.m	Wed Feb 25 00:41:40 2009 -0500
@@ -44,7 +44,9 @@
   endif
   
   ## Save cache
-  save ("-text", out_file, "cache");
+  if (! isempty (cache))
+    save ("-text", out_file, "cache");
+  endif
 endfunction
 
 function [text, first_sentence, status] = handle_function (f, text, format)