Skip to content

Commit

Permalink
Fix the quicklisp installer using a bundled client.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Nov 2, 2023
1 parent 237cb32 commit 8958da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions install/quicklisp.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
(copy-directory quicklisp-client path
:exclude (lambda (file)
(not (or (equal (pathname-type file) "lisp")
(equal (pathname-type file) "asd")
(equal (file-namestring file) "version.txt"))))))
(mapc #'ensure-directories-exist
(mapcar (lambda (dirname)
Expand Down
5 changes: 3 additions & 2 deletions utils/file.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

(defun copy-directory (dir destination &key exclude)
(let ((files
(remove-if (or exclude #'identity) (uiop:directory-files dir))))
(remove-if (or exclude (constantly nil)) (uiop:directory-files dir))))
(when files
(ensure-directories-exist destination)
(dolist (file files)
(uiop:copy-file file
(merge-pathnames (file-namestring file) destination)))))
(dolist (subdir (uiop:subdirectories dir))
(copy-directory subdir
(merge-pathnames (enough-namestring subdir dir) destination))))
(merge-pathnames (enough-namestring subdir dir) destination)
:exclude exclude)))

0 comments on commit 8958da4

Please sign in to comment.