-
Notifications
You must be signed in to change notification settings - Fork 1
/
load-ap5.lisp
32 lines (25 loc) · 1.34 KB
/
load-ap5.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
(in-package :ap5)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defparameter *system-dir* (asdf:component-pathname (asdf:find-system :ap5)))
(defun full-path (dir) (merge-pathnames dir *system-dir*))
;;; Configure parameters ;;;
(defparameter *not-compiling* nil)
(defparameter *compiled-pathname* nil)
(defparameter *rel-path-to-source* '("ap5-20120509" "source"))
;; Change parameters ;;
(when (probe-file (full-path "config.lisp"))
(load (full-path "config.lisp")))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defparameter *source-dir* (asdf:component-pathname (asdf:find-component (asdf:find-system :ap5) *rel-path-to-source*)))
(setf source-default-path *source-dir*)
(setf bin-default-path (or *compiled-pathname*
(full-path #+lispworks6.1 "compiled/lw61-fasl/"
#-lispworks6.1 (concatenate 'string
"compiled/"
(lisp-implementation-type)
" - "
(lisp-implementation-version)
"/"))))
(ensure-directories-exist bin-default-path)
)
(load-ap5 :nevercompile *not-compiling*)