diff lisp/update-elc-2.el @ 528:ef4d2466a29c

[xemacs-hg @ 2001-05-10 09:59:45 by ben] implement user-name-all-completions under Windows. xemacs.mak: need another lib (netapi32.lib) for user-name-all-completions. emacs.c: create new function force-debugging-signal (only when DEBUG_XEMACS) to breakpoint or abort to the debugger. mule\mule-coding.el, file-coding.c, file-coding.h, lisp.h: move coding-system-charset to lisp to avoid doc warning. autoload.el, packages.el, startup.el, update-elc-2.el, update-elc.el: Rewrite much of the bootstrapping process to be more robust, and in particular to rebuild the auto-autoloads and custom-loads files no matter what state (including missing) they're currently in. xemacs.mak: remove autoload-building target. Makefile.in.in: remove autoload targets.
author ben
date Thu, 10 May 2001 09:59:57 +0000
parents 576fb035e263
children af57a77cbc92
line wrap: on
line diff
--- a/lisp/update-elc-2.el	Thu May 10 08:09:23 2001 +0000
+++ b/lisp/update-elc-2.el	Thu May 10 09:59:57 2001 +0000
@@ -142,7 +142,22 @@
 	     dir)
     (message "Recompiling updated .els in directory tree `%s'..." dir)
     (do-update-elc-2 dir t nil)
-    (message "Recompiling updated .els in directory tree `%s'...done" dir))
+    (message "Recompiling updated .els in directory tree `%s'...done" dir)
+    ;; don't depend on being able to autoload `update-autoload-files'!
+    (load "autoload")
+    (update-autoload-files (list dir))
+    (byte-recompile-file (expand-file-name "auto-autoloads.el" dir) 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))
+    ;; likewise here.
+    (load "cus-dep")
+    (Custom-make-dependencies dir)
+    (byte-recompile-file (expand-file-name "custom-load.el" dir) 0)
+    (when (featurep 'mule)
+      (Custom-make-dependencies (expand-file-name "mule" dir))
+      (byte-recompile-file (expand-file-name "mule/custom-load.el" dir) 0))
+    )
   (setq command-line-args-left nil))
 
 ;;; update-elc-2.el ends here