-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathloader.lisp
40 lines (30 loc) · 822 Bytes
/
loader.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(defparameter *ql-modules*
(list "drakma"
"ip-interfaces"
"optima"
"cl-fad"
"trivial-shell"
"yason"
"cl-ppcre"
"hunchentoot"
"Levenshtein"))
(mapcar #'quicklisp:quickload *ql-modules*)
(defparameter *reports* ())
(defparameter *files*
(list
"./lisp/packages"
"configs"
"./lisp/utils"
"./lisp/interface"
"./lisp/transform"
"./lisp/www"))
(defun compile-and-load (pathname &key (verbose nil))
(multiple-value-bind (output-pathname warnings-p failure-p)
(compile-file
(merge-pathnames
pathname (load-time-value *load-truename*)) :verbose verbose)
(declare (ignore warnings-p))
(if failure-p
(error "Could not compile ~a" pathname)
(load output-pathname))))
(map nil 'compile-and-load *files*)