truth-table/build.lisp

19 lines
494 B
Common Lisp
Raw Normal View History

2024-09-04 03:14:57 -07:00
;; This file should be run as follows:
2024-09-05 14:46:05 -07:00
;; sbcl --load build.lisp --eval '(cli)'
2024-09-04 03:14:57 -07:00
;; where <BUILD FUNCTION> is either `cli' or `web'
2024-09-03 17:50:58 -07:00
2024-09-04 03:14:57 -07:00
#-sbcl (error "Only SBCL is supported right now")
2024-09-03 17:50:58 -07:00
2024-09-04 03:14:57 -07:00
(require :asdf)
(defun cli ()
"Build the CLI application executable."
2024-09-05 14:46:05 -07:00
(sb-ext:disable-debugger)
2024-09-04 03:14:57 -07:00
(asdf:load-system :truth-table/cli)
(require :truth-table/cli)
2024-09-03 17:50:58 -07:00
(sb-ext:save-lisp-and-die
"truth-table"
2024-09-04 03:14:57 -07:00
:executable t
2024-09-03 17:50:58 -07:00
:save-runtime-options t
2024-09-04 03:14:57 -07:00
:toplevel (intern "TOPLEVEL" :truth-table/cli)))