]> git.eshelyaron.com Git - emacs.git/commitdiff
* Makefile.in (bootstrap-prepare): Don't copy ldefs-boot over loaddefs.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 11 Apr 2008 13:27:14 +0000 (13:27 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 11 Apr 2008 13:27:14 +0000 (13:27 +0000)
* loadup.el: Load ldefs-boot.el if loaddefs.el doesn't exist.

lisp/ChangeLog
lisp/Makefile.in
lisp/loadup.el

index 557e43f6df410dbfe0e23043d80e8d384ef017c3..445e84e9bd394c215380358f8a9cc42a0bbeab68 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * Makefile.in (bootstrap-prepare): Don't copy ldefs-boot over loaddefs.
+       * loadup.el: Load ldefs-boot.el if loaddefs.el doesn't exist.
+
 2008-04-11  Jan Djärv  <jan.h.d@swipnet.se>
 
        * tooltip.el (tooltip-show-help-non-mode): Set message-truncate-lines
index ebbb9a6a2d691675ea50e87bec42557c4317dc1d..eddd50871cdde8820e0788790459875e7c59752b 100644 (file)
@@ -311,11 +311,8 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC)
 bootstrap-prepare:
        if test -x $(EMACS); then                               \
          $(MAKE) $(MFLAGS) autoloads;                          \
-       else                                                    \
-         cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el;         \
        fi
-       chmod +w $(lisp)/loaddefs.el            \
-         $(lisp)/ps-print.el                   \
+       chmod +w $(lisp)/ps-print.el                    \
          $(lisp)/emacs-lisp/cl-loaddefs.el
 
 maintainer-clean: distclean bootstrap-clean
index b3deea67fbe16a696b86bf64409c195a06d7b878..8581f05fedb1c5d2ce68956c19c164d12265bdac 100644 (file)
 (message "Lists of integers (garbage collection statistics) are normal output")
 (message "while building Emacs; they do not indicate a problem.")
 (message "%s" (garbage-collect))
-(load "loaddefs.el")  ;Don't get confused if someone compiled this by mistake.
+
+(condition-case nil
+    ;; Don't get confused if someone compiled this by mistake.
+    (load "loaddefs.el")
+  ;; In case loaddefs hasn't been generated yet.
+  (file-error (load "ldefs-boot.el")))
+
 (message "%s" (garbage-collect))
 (load "simple")