forked from rongarret/ergolib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathql.lisp
25 lines (19 loc) · 968 Bytes
/
ql.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(defun this-directory (&optional (path-extension ""))
(merge-pathnames path-extension
(directory-namestring
(or *load-pathname* *default-pathname-defaults*))))
(defvar *quicklisp-path* (merge-pathnames "quicklisp/" (this-directory)))
(defun setup-quicklisp ()
(let ((*load-verbose* t))
(if (probe-file (merge-pathnames "setup.lisp" *quicklisp-path*))
(load (merge-pathnames "setup.lisp" *quicklisp-path*))
(progn
(format t "~&Installing Quicklisp...")
(ensure-directories-exist *quicklisp-path*)
#+CCL (load "http://beta.quicklisp.org/quicklisp.lisp")
#-CCL (load (merge-pathnames "quicklisp" (this-directory)))
(funcall (intern "INSTALL" :quicklisp-quickstart) :path *quicklisp-path*)))))
(setup-quicklisp)
(defun module-provide-quicklisp (&rest args)
(ignore-errors (apply 'ql:quickload args)))
(pushnew 'module-provide-quicklisp *module-provider-functions*)