Refactor autoload generator bootstrappers
This commit is contained in:
parent
4a53f0818d
commit
4f676bd218
5 changed files with 48 additions and 63 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue