elpaca: bump installer version
This commit is contained in:
parent
438e191210
commit
ba7069dca0
@ -4,7 +4,7 @@
|
|||||||
;; Taken from https://github.com/progfolio/elpaca
|
;; Taken from https://github.com/progfolio/elpaca
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(defvar elpaca-installer-version 0.2)
|
(defvar elpaca-installer-version 0.3)
|
||||||
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
||||||
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
||||||
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
|
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
|
||||||
@ -12,27 +12,31 @@
|
|||||||
:ref nil
|
:ref nil
|
||||||
:files (:defaults (:exclude "extensions"))
|
:files (:defaults (:exclude "extensions"))
|
||||||
:build (:not elpaca--activate-package)))
|
:build (:not elpaca--activate-package)))
|
||||||
(when-let ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
|
(let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
|
||||||
(build (expand-file-name "elpaca/" elpaca-builds-directory))
|
(build (expand-file-name "elpaca/" elpaca-builds-directory))
|
||||||
(order (cdr elpaca-order))
|
(order (cdr elpaca-order))
|
||||||
((add-to-list 'load-path (if (file-exists-p build) build repo)))
|
(default-directory repo))
|
||||||
((not (file-exists-p repo))))
|
(add-to-list 'load-path (if (file-exists-p build) build repo))
|
||||||
|
(unless (file-exists-p repo)
|
||||||
|
(make-directory repo t)
|
||||||
(condition-case-unless-debug err
|
(condition-case-unless-debug err
|
||||||
(if-let ((buffer (pop-to-buffer-same-window "*elpaca-installer*"))
|
(if-let ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
|
||||||
((zerop (call-process "git" nil buffer t "clone"
|
((zerop (call-process "git" nil buffer t "clone"
|
||||||
(plist-get order :repo) repo)))
|
(plist-get order :repo) repo)))
|
||||||
(default-directory repo)
|
|
||||||
((zerop (call-process "git" nil buffer t "checkout"
|
((zerop (call-process "git" nil buffer t "checkout"
|
||||||
(or (plist-get order :ref) "--"))))
|
(or (plist-get order :ref) "--"))))
|
||||||
(emacs (concat invocation-directory invocation-name))
|
(emacs (concat invocation-directory invocation-name))
|
||||||
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
|
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
|
||||||
"--eval" "(byte-recompile-directory \".\" 0 'force)"))))
|
"--eval" "(byte-recompile-directory \".\" 0 'force)")))
|
||||||
(progn (require 'elpaca)
|
((require 'elpaca))
|
||||||
(elpaca-generate-autoloads "elpaca" repo)
|
((elpaca-generate-autoloads "elpaca" repo)))
|
||||||
(kill-buffer buffer))
|
(kill-buffer buffer)
|
||||||
(error "%s" (with-current-buffer buffer (buffer-string))))
|
(error "%s" (with-current-buffer buffer (buffer-string))))
|
||||||
((error) (warn "%s" err) (delete-directory repo 'recursive))))
|
((error) (warn "%s" err) (delete-directory repo 'recursive))))
|
||||||
(require 'elpaca-autoloads)
|
(unless (require 'elpaca-autoloads nil t)
|
||||||
|
(require 'elpaca)
|
||||||
|
(elpaca-generate-autoloads "elpaca" repo)
|
||||||
|
(load "./elpaca-autoloads")))
|
||||||
(add-hook 'after-init-hook #'elpaca-process-queues)
|
(add-hook 'after-init-hook #'elpaca-process-queues)
|
||||||
(elpaca `(,@elpaca-order))
|
(elpaca `(,@elpaca-order))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user