git.fiddlerwoaroof.com
Browse code

chore: rewrite deploy.lisp to use logical pathnames

fiddlerwoaroof authored on 21/06/2020 19:28:30
Showing 1 changed files
... ...
@@ -1,8 +1,50 @@
1
-(load (truename "~/quicklisp/setup.lisp"))
2
-(push "/home/edwlan/github_repos/alimenta-feed-archive/" asdf:*central-registry*)
1
+(handler-case (logical-pathname-translations "SYS")
2
+  (error ()
3
+    (setf (logical-pathname-translations "SYS") nil)))
4
+
5
+(pushnew
6
+ `(#p"SYS:SITE;**;*.*.*"
7
+     ,(merge-pathnames
8
+       (make-pathname :directory (list
9
+                                  :relative ".sbcl" "site"
10
+                                  :wild-inferiors)
11
+                      :name :wild
12
+                      :type :wild)
13
+       (user-homedir-pathname)))
14
+ (logical-pathname-translations "SYS")
15
+ :test #'equal
16
+ :key (lambda (it) (namestring (car it))))
17
+
18
+(mapcar (lambda (it)
19
+          (with-open-file (s it :direction :input
20
+                                :element-type 'character)
21
+            (setf (logical-pathname-translations (string-upcase
22
+                                                  (pathname-name it)))
23
+                  (read s))))
24
+        (directory #p"SYS:SITE;*.translations"))
25
+
26
+(load (truename #p"QL:setup.lisp"))
27
+
28
+(push (truename #p"PROJECTS:alimenta-feed-archive;")
29
+      asdf:*central-registry*)
30
+
3 31
 (ql:quickload :alimenta-feed-archive)
4
-(#+ccl ccl:save-application
5
- #+sbcl save-lisp-and-die
6
- "feed-archiver"
7
- #+sbcl :executable  #+ccl :prepend-kernel t
8
- #+sbcl :toplevel #+ccl :toplevel-function #'alimenta.feed-archive:command-line-main)
32
+
33
+#+(or)
34
+(setf sb-alien::*shared-objects* nil)
35
+
36
+#+sbcl
37
+(defun do-sbcl ()
38
+  (save-lisp-and-die "feed-archiver"
39
+                     :executable t
40
+                     :toplevel #'alimenta.feed-archive:command-line-main))
41
+
42
+#+ccl
43
+(defun do-ccl ()
44
+  (ccl:save-application
45
+   "feed-archiver"
46
+   :prepend-kernel t
47
+   :toplevel-function #'alimenta.feed-archive:command-line-main))
48
+
49
+(#+sbcl do-sbcl
50
+ #+ccl do-ccl)