From 4be1a20fa252c43880b94d1a92cee00e822f1aa6 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 11 Aug 2024 19:52:19 -0700 Subject: initial commit --- build.lisp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 build.lisp (limited to 'build.lisp') 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) -- cgit v1.2.3