diff options
author | colin <colin@cicadas.surf> | 2024-08-11 19:52:19 -0700 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2024-08-11 19:52:19 -0700 |
commit | 4be1a20fa252c43880b94d1a92cee00e822f1aa6 (patch) | |
tree | c6b6b894a015b97febd07ecce8ca1f768df19ee1 /build.lisp |
initial commit
Diffstat (limited to 'build.lisp')
-rw-r--r-- | build.lisp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build.lisp b/build.lisp new file mode 100644 index 0000000..98920ea --- /dev/null +++ b/build.lisp @@ -0,0 +1,24 @@ +(require 'asdf) + +(asdf:load-system :pastiche) + +(defun get-option (name &optional default) + (or + (let ((args (uiop:command-line-arguments))) + (when-let ((pos (position name args :test #'string-equal))) + (nth (1+ pos) args))) + default)) + +(defun run () + (let ((config-path (get-option "--config"))) + (truname config-path) + (pastiche::load-config config-path) + (pastiche::start) + (loop (sleep 30)))) + +(ensure-directories-exist #P"./bin/") +(sb-ext:save-lisp-and-die + "bin/pastiche" + :toplevel #'run + :executable t + :compression t) |