-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
145 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
;;; lisp/shared.el --- Shared functions | ||
|
||
;;; Commentary: | ||
;; | ||
;; Functions cannot be compiled in `_prepare.el' but can be | ||
;; compiled later on. | ||
;; | ||
|
||
;;; Code: | ||
|
||
(defun qob-install-systems (names) | ||
"Install systems by NAMES." | ||
(let* ((total (length names)) | ||
(count 1) | ||
(installed 0) | ||
(skipped 0)) | ||
(qob-msg "Installing 2 systems... ") | ||
(qob-msg "") | ||
(dolist (name names) | ||
(let* ((system (asdf:find-system name)) | ||
(version (asdf:component-version system)) | ||
(already-installed-p (asdf:find-system name))) | ||
(if already-installed-p (incf skipped) (incf installed)) | ||
(qob-with-progress | ||
(qob-format " - [~A/~A] Installing ~A (~A)... " | ||
count total | ||
(qob-ansi-green name) | ||
(qob-ansi-yellow version)) | ||
(qob-silent (ql:quickload name)) | ||
(if already-installed-p "skipped ✗" "done ✓"))) | ||
(incf count)) | ||
(qob-msg "") | ||
(qob-info "(Total of ~A systems installed; ~A skipped)" installed skipped))) | ||
|
||
;;; End of lisp/shared.lisp |