Skip to content

Commit 851f409

Browse files
author
Paul Nathan
committed
Fixup to the build script
1 parent e92573c commit 851f409

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

make.lisp

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@
143143
(aref candidate-value 0))))
144144
path-list)))
145145

146-
(defun find-markdowns (path-list)
146+
(defun find-htmls (path-list)
147147
(remove nil
148148
(mapcar
149149
#'(lambda (path)
150150
(multiple-value-bind
151151
(filename part)
152-
(cl-ppcre:scan-to-strings "\(\.+\).md$" path)
152+
(cl-ppcre:scan-to-strings "\(\.+\).html$" path)
153153
filename))
154154
path-list)))
155155

@@ -170,15 +170,19 @@
170170
(defun build-files ()
171171
(build-git-hash-file)
172172
(loop for file in (find-file-prefixes (ls))
173-
do
174-
(format t "~&articulating ~a into the final form...~&" file)
175-
(build-a-file file))
176-
(when (find :unix *features*)
177-
(dolist (file (find-markdowns (ls)))
178-
(external-program:run "cp" (list file
179-
(cl-ppcre:regex-replace-all
180-
"~"
181-
file
182-
":")) )))
173+
do
174+
(format t "~&articulating ~a into the final form...~&" file)
175+
(build-a-file file)
176+
;; Convert to `:` format when on Unix, i.e., a build machine.
177+
(when (find :unix *features*)
178+
(let ((args (list (format nil "site/~a.html" file)
179+
(format nil "site/~a.html"
180+
(cl-ppcre:regex-replace-all
181+
"~"
182+
file
183+
":")))))
184+
(external-program:run "cp" args))))
185+
183186
(format t "~&final reticulation...~&")
184-
(external-program:run "cp" '("-r" "src" "site/") ))
187+
;; Get the static content over.
188+
(external-program:run "cp" '("-r" "src" "site/")))

0 commit comments

Comments
 (0)