git.fiddlerwoaroof.com
Browse code

chore: miscellaneous changes

fiddlerwoaroof authored on 14/10/2022 03:41:57
Showing 4 changed files
... ...
@@ -1,5 +1,7 @@
1 1
 all: sbcl
2 2
 
3
+debug:
4
+	sbcl --load deploy.lisp
3 5
 sbcl:
4 6
 	sbcl --no-userinit --disable-debugger --load deploy.lisp
5 7
 ccl:
... ...
@@ -30,6 +30,8 @@
30 30
 
31 31
 (ql:quickload :alimenta-feed-archive)
32 32
 
33
+(load #p"PROJECTS:alimenta-feed-archive;main.lisp")
34
+
33 35
 #+(or)
34 36
 (setf sb-alien::*shared-objects* nil)
35 37
 
... ...
@@ -49,8 +49,8 @@
49 49
                                ,@body)
50 50
          (format ,stream " ~a~%" ,after)))))
51 51
 
52
-(defun skip-feed ()
53
-  (when-let ((restart (find-restart 'skip-feed)))
52
+(defun skip-feed (c)
53
+  (when-let ((restart (find-restart 'skip-feed c)))
54 54
     (invoke-restart restart)))
55 55
 
56 56
 (defun save-feed (feed output-file &key (if-exists :supersede))
... ...
@@ -69,7 +69,7 @@
69 69
 
70 70
 (defun log-serialization (feed-url stream feed path)
71 71
   (declare (ignorable feed-url stream feed path))
72
-  (with-progress-message (stream "Serializing XML" (format nil "done with ~a" feed-url))
72
+  (with-progress-message (stream "Serializing XML" (format nil "done with ~a at ~a" feed-url path))
73 73
     (save-feed feed (merge-pathnames "feed.xml" path))))
74 74
 
75 75
 (defun feed-relative-pathname (path &optional (feed-base *feed-base*))
... ...
@@ -27,6 +27,7 @@
27 27
 (defmethod yason:encode-slots progn ((object feed-reference))
28 28
   (let ((title (title object))
29 29
         (path (path object)))
30
+    (format *error-output* "~&title: ~s path: ~s~%" title (directory-of path))
30 31
     (yason:encode-object-element "url" (url object))
31 32
     (when title
32 33
       (yason:encode-object-element "title" title))