diff options
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) |