chiark / gitweb /
dot/lisp-init.lisp: Make sure that ASDF is available.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 23 Jun 2011 10:13:25 +0000 (11:13 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 23 Jun 2011 10:13:25 +0000 (11:13 +0100)
The Debian Lisp packaging isn't providing ASDF by default any more, so
we must do it ourselves.

dot/lisp-init.lisp

index 6624c60c9407768a0b19e554e18304aba0a516b3..3b5806de5ca75d4d9e9cac46d44d1c3fdb97ae86 100644 (file)
@@ -3,6 +3,18 @@ (defpackage #:mdw-hacks
   (:export #:crank-swank))
 (use-package '#:mdw-hacks)
 
+;; Obtain ASDF from somewhere.
+#+sbcl (require :asdf)
+#+clisp (let ((*compile-verbose* nil)
+             (*load-verbose* nil))
+         (load "/usr/share/common-lisp/source/cl-asdf/asdf.lisp"
+               :verbose nil)
+         (handler-bind ((warning (lambda (cond)
+                                   (declare (ignore cond))
+                                   (muffle-warning))))
+           (funcall (find-symbol "LOAD-SYSTEM" :asdf) :asdf
+                    :verbose nil)))
+
 ;; Shut up.
 (setf *load-verbose* nil)
 (setf *compile-verbose* nil)