annotate lisp/update-elc-2.el @ 1232:c08a6fa181d1

[xemacs-hg @ 2003-01-23 11:38:56 by stephent] commit notice <87lm1cksms.fsf@tleepslib.sk.tsukuba.ac.jp> autoloads patch <87lm1ig654.fsf@tleepslib.sk.tsukuba.ac.jp> Martin's info.el patch <877kd5je7e.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Thu, 23 Jan 2003 11:39:01 +0000
parents 25e260cb7994
children 465bd3c7d932
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
1 ;;; update-elc-2.el --- Recompile remaining .el files, post-dumping
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
3 ;; Copyright (C) 1997 by Free Software Foundation, Inc.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
4 ;; Copyright (C) 2000 Ben Wing.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
6 ;; Author: Ben Wing <ben@xemacs.org>, based on cleantree.el by
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
7 ;; Steven L Baur <steve@xemacs.org>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
8 ;; Maintainer: XEmacs Development Team
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
9 ;; Keywords: internal
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
10
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
11 ;; This file is part of XEmacs.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
12
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
13 ;; XEmacs is free software; you can redistribute it and/or modify it
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
14 ;; under the terms of the GNU General Public License as published by
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
15 ;; the Free Software Foundation; either version 2, or (at your option)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
16 ;; any later version.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
17
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
18 ;; XEmacs is distributed in the hope that it will be useful, but
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
21 ;; General Public License for more details.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
22
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
23 ;; You should have received a copy of the GNU General Public License
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
24 ;; along with XEmacs; see the file COPYING. If not, write to the Free
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
25 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
26 ;; 02111-1307, USA.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
27
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
28 ;;; Synched up with: Not in FSF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
29
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
30 ;;; Commentary:
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
31
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
32 ;; This file should be used after XEmacs has been dumped, to recompile
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
33 ;; all remaining out-of-date .els and clean up orphaned .elcs. It should
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
34 ;; be called as
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
35 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
36 ;; xemacs -batch -vanilla -l update-elc-2.el -f batch-update-elc-2 ${dirname}
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
37 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
38 ;; where ${dirname} is the directory tree to recompile, usually `lisp'.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
39 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
40 ;; Note that this is very different from update-elc.el, which is called
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
41 ;; BEFORE dumping, handles only the files needed to dump, and is called
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
42 ;; from temacs instead of xemacs.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
43 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
44 ;; The original cleantree.el had the comment: This code is derived
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
45 ;; from Gnus based on a suggestion by David Moore <dmoore@ucsd.edu>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
46
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
47 ;;; Code:
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
48
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
49 (defvar update-elc-ignored-dirs
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
50 `("." ".." "CVS" "SCCS" "RCS" ,@(unless (featurep 'mule) '("mule"))))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
51
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
52 (defvar update-elc-ignored-files
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
53 ;; note: entries here are regexps
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
54 '("^," ;; #### huh?
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
55 "^paths\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
56 "^loadup\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
57 "^loadup-el\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
58 "^update-elc\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
59 "^update-elc-2\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
60 "^dumped-lisp\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
61 "^make-docfile\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
62 "^site-start\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
63 "^site-load\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
64 "^site-init\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
65 "^version\\.el$"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
66 "^very-early-lisp\\.el$"))
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
67
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
68 ;; SEEN accumulates the list of already-handled dirs.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
69 (defun do-update-elc-2 (dir compile-stage-p seen)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
70 (setq dir (file-name-as-directory dir))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
71 ;; Only scan this sub-tree if we haven't been here yet.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
72 (unless (member (file-truename dir) seen)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
73 (push (file-truename dir) seen)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
74
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
75 ;; Do this directory.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
76 (if compile-stage-p
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
77 ;; Stage 2: Recompile necessary .els
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
78 (let ((files (directory-files dir t "\\.el$"))
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
79 file file-c)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
80 (while (setq file (car files))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
81 (setq files (cdr files))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
82 (setq file-c (concat file "c"))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
83 (when (and (file-exists-p file)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
84 (or (not (file-exists-p file-c))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
85 (file-newer-than-file-p file file-c))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
86 (let (ignore)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
87 (mapcar
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
88 #'(lambda (regexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
89 (if (string-match regexp
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
90 (file-name-nondirectory file))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
91 (setq ignore t)))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
92 update-elc-ignored-files)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
93 (not ignore)))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
94 (byte-compile-file file))))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
95
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
96 ;; Stage 1.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
97 ;; Remove out-of-date elcs
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
98 (let ((files (directory-files dir t "\\.el$"))
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
99 file file-c)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
100 (while (setq file (car files))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
101 (setq files (cdr files))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
102 (setq file-c (concat file "c"))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
103 (when (and (file-exists-p file-c)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
104 (file-newer-than-file-p file file-c))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
105 (message "Removing out-of-date %s" file-c)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
106 (delete-file file-c))))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
107 ;; Remove elcs without corresponding el
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
108 (let ((files (directory-files dir t "\\.elc$"))
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
109 file file-c)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
110 (while (setq file-c (car files))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
111 (setq files (cdr files))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
112 (setq file (replace-in-string file-c "c$" ""))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
113 (when (and (file-exists-p file-c)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
114 (not (file-exists-p file)))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
115 (message "Removing %s; no corresponding .el" file-c)
617
af57a77cbc92 [xemacs-hg @ 2001-06-18 07:09:50 by ben]
ben
parents: 528
diff changeset
116 (delete-file file-c)))))
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
117
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
118 ;; We descend recursively
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
119 (let ((dirs (directory-files dir t nil t))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
120 dir)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
121 (while (setq dir (pop dirs))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
122 (when (and (not (member (file-name-nondirectory dir)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
123 update-elc-ignored-dirs))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
124 (file-directory-p dir))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
125 (do-update-elc-2 dir compile-stage-p seen))))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
126
617
af57a77cbc92 [xemacs-hg @ 2001-06-18 07:09:50 by ben]
ben
parents: 528
diff changeset
127 ))
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
128
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
129 (defun batch-update-elc-2 ()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
130 (defvar command-line-args-left)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
131 (unless noninteractive
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
132 (error "`batch-update-elc-2' is to be used only with -batch"))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
133 (let ((dir (car command-line-args-left)))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
134 ;; We remove all the bad .elcs before any byte-compilation, because
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
135 ;; there may be dependencies between one .el and another (even across
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
136 ;; directories), and we don't want to load an out-of-date .elc while
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
137 ;; byte-compiling a file.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
138 (message "Removing old or spurious .elcs in directory tree `%s'..." dir)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
139 (do-update-elc-2 dir nil nil)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
140 (message "Removing old or spurious .elcs in directory tree `%s'...done"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
141 dir)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
142 (message "Recompiling updated .els in directory tree `%s'..." dir)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
143 (do-update-elc-2 dir t nil)
528
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
144 (message "Recompiling updated .els in directory tree `%s'...done" dir)
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
145 ;; don't depend on being able to autoload `update-autoload-files'!
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
146 (load "autoload")
1232
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
147 ;; #### the API used here is deprecated, convert to one with explicit
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
148 ;; arguments when it is available
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
149 (let ((generated-autoload-file (expand-file-name "auto-autoloads.el" dir))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
150 (autoload-package-name "auto")) ; feature prefix
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
151 (update-autoload-files (list dir))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
152 (byte-recompile-file generated-autoload-file 0))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
153 (when (featurep 'modules)
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents: 617
diff changeset
154 (let* ((moddir (expand-file-name "../modules" (file-truename dir)))
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents: 617
diff changeset
155 (generated-autoload-file
1232
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
156 (expand-file-name "auto-autoloads.el" moddir))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
157 (autoload-package-name "modules")) ; feature prefix
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
158 (update-autoload-files
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
159 (delete (concat (file-name-as-directory moddir) ".")
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
160 (delete (concat (file-name-as-directory moddir) "..")
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
161 (directory-files moddir t nil nil 0)))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
162 t)
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents: 617
diff changeset
163 (byte-recompile-file generated-autoload-file 0)))
528
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
164 (when (featurep 'mule)
1232
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
165 (let* ((muledir (expand-file-name "../modules" (file-truename dir)))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
166 (generated-autoload-file
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
167 (expand-file-name "auto-autoloads.el" muledir))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
168 (autoload-package-name "mule")) ; feature prefix
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
169 (update-autoload-files (list muledir))
c08a6fa181d1 [xemacs-hg @ 2003-01-23 11:38:56 by stephent]
stephent
parents: 996
diff changeset
170 (byte-recompile-file generated-autoload-file 0)))
528
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
171 ;; likewise here.
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
172 (load "cus-dep")
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
173 (Custom-make-dependencies dir)
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
174 (byte-recompile-file (expand-file-name "custom-load.el" dir) 0)
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
175 (when (featurep 'mule)
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
176 (Custom-make-dependencies (expand-file-name "mule" dir))
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
177 (byte-recompile-file (expand-file-name "mule/custom-load.el" dir) 0))
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 444
diff changeset
178 )
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
179 (setq command-line-args-left nil))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents:
diff changeset
180
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
181 ;;; update-elc-2.el ends here