diff lisp/update-elc-2.el @ 996:25e260cb7994

[xemacs-hg @ 2002-09-10 15:27:02 by james] Enable unloading of dynamic modules. Create the first two internal XEmacs modules: LDAP and postgreSQL. Update the sample directory to contain a sample internal XEmacs module and a sample external XEmacs module. Improve support for autoloading modules. Make internal module code compile into the XEmacs binary if XEmacs is configured without module support. Make the internal module directories self-contained so that they can be distributed separately from XEmacs.
author james
date Tue, 10 Sep 2002 15:27:39 +0000
parents af57a77cbc92
children c08a6fa181d1
line wrap: on
line diff
--- a/lisp/update-elc-2.el	Mon Sep 09 21:53:43 2002 +0000
+++ b/lisp/update-elc-2.el	Tue Sep 10 15:27:39 2002 +0000
@@ -146,6 +146,12 @@
     (load "autoload")
     (update-autoload-files (list dir))
     (byte-recompile-file (expand-file-name "auto-autoloads.el" dir) 0)
+    (if (featurep 'modules)
+      (let* ((moddir (expand-file-name "../modules" (file-truename dir)))
+	     (generated-autoload-file
+	      (expand-file-name "auto-autoloads.el" moddir)))
+	(update-autoload-files (directory-files moddir t nil nil 0) t)
+	(byte-recompile-file generated-autoload-file 0)))
     (when (featurep 'mule)
       (update-autoload-files (list (expand-file-name "mule" dir)))
       (byte-recompile-file (expand-file-name "mule/auto-autoloads.el" dir) 0))