Refactor autoload generator bootstrappers

This commit is contained in:
Henrik Lissner 2020-01-01 13:31:40 -05:00
parent 4a53f0818d
commit 4f676bd218
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 48 additions and 63 deletions

View file

@ -246,16 +246,7 @@ stale."
(file-exists-p doom-env-file))
(doom-cli-reload-env-file 'force))
;; Ensures that no pre-existing state pollutes the generation of the new
;; autoloads files.
(dolist (file (list doom-autoload-file doom-package-autoload-file))
(delete-file file)
(delete-file (byte-compile-dest-file file)))
(doom-initialize 'force 'noerror)
(doom-initialize-modules)
(doom-cli-reload-autoloads 'core)
(doom-cli-reload-core-autoloads)
(unwind-protect
(progn
(and (doom-cli-packages-install)
@ -264,7 +255,7 @@ stale."
(setq success t))
(and (doom-cli-packages-purge prune-p 'builds-p prune-p prune-p)
(setq success t)))
(doom-cli-reload-autoloads 'package)
(doom-cli-reload-package-autoloads)
(doom-cli-byte-compile nil 'recompile))
t)))