X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lisp%2Fupdate-elc.el;h=9dcc274f211a5620306f41c94b5b94749c9527de;hp=d9c33c8ab3357bcc5188405fbb3beefa29ee4089;hb=5378ab6d2bb24fd8d39025be1574d406cf91f141;hpb=a1655b870904de973c366d85ebdc8adde4ef5e1e diff --git a/lisp/update-elc.el b/lisp/update-elc.el index d9c33c8..9dcc274 100644 --- a/lisp/update-elc.el +++ b/lisp/update-elc.el @@ -1,8 +1,9 @@ ;;; update-elc.el --- Bytecompile out-of-date dumped files ;; Copyright (C) 1997 Free Software Foundation, Inc. -;; Copyright (C) 1996 Unknown +;; Copyright (C) 1996 Sun Microsystems, Inc. +;; Author: Ben Wing , Steven L Baur ;; Maintainer: XEmacs Development Team ;; Keywords: internal @@ -39,6 +40,8 @@ ;; (the idea here is that you can bootstrap if your .ELC files ;; are missing or badly out-of-date) +;; See also update-elc-2.el + ;;; Code: (defvar processed nil) @@ -84,6 +87,9 @@ (let (preloaded-file-list site-load-packages need-to-dump dumped-exe) (load (expand-file-name "../lisp/dumped-lisp.el")) + (when (featurep 'utf-2000) + (load (expand-file-name "../lisp/utf-2000/dumped-chars.el"))) + (setq dumped-exe (cond ((file-exists-p "../src/xemacs.exe") "../src/xemacs.exe") ((file-exists-p "../src/xemacs") "../src/xemacs") @@ -103,6 +109,8 @@ (setq preloaded-file-list (append packages-hardcoded-lisp preloaded-file-list + (if (featurep 'utf-2000) + system-char-db-source-file-list) packages-useful-lisp site-load-packages)) (while preloaded-file-list @@ -115,14 +123,18 @@ (if (string-match "\\.elc?\\'" arg) (substring arg 0 (match-beginning 0)) arg))) - (if (and dumped-exe - (or (and (file-exists-p (concat frob ".el")) - (file-newer-than-file-p (concat frob ".el") - dumped-exe)) - (and (file-exists-p (concat frob ".elc")) - (file-newer-than-file-p (concat frob ".elc") - dumped-exe)))) - (setq need-to-dump t))) + (when (and dumped-exe + (or (and (file-exists-p + (concat "../lisp/" frob ".el")) + (file-newer-than-file-p + (concat "../lisp/" frob ".el") + dumped-exe)) + (and (file-exists-p + (concat "../lisp/" frob ".elc")) + (file-newer-than-file-p + (concat "../lisp/" frob ".elc") + dumped-exe)))) + (setq need-to-dump t))) (if (null (member (file-name-nondirectory arg) packages-unbytecompiled-lisp)) @@ -153,7 +165,7 @@ ) (setq update-elc-files-to-compile (append update-elc-files-to-compile - processed)) + (nreverse processed))) ;; (print (prin1-to-string update-elc-files-to-compile))