(directory-files (expand-file-name d)
t files-re))
(if (consp dir) dir (list dir)))))
+ (updating (and (file-exists-p output-file)
+ ;; Always do a complete update if loaddefs-gen.el
+ ;; has been updated and we're doing a base build.
+ include-package-version
+ (file-newer-than-file-p
+ output-file
+ (expand-file-name "emacs-lisp/loaddefs-gen.el"))))
(defs nil))
;; Collect all the autoload data.
(file-count 0))
(dolist (file files)
(progress-reporter-update progress (setq file-count (1+ file-count)))
- (when (or (not (file-exists-p output-file))
+ (when (or (not updating)
(file-newer-than-file-p file output-file))
(setq defs (nconc
(loaddefs-generate--parse-file