lisp/build-binary @ a6e1eedddb20

More
author Steve Losh <steve@stevelosh.com>
date Wed, 12 Feb 2020 11:50:57 -0500
parents 3e8af1c65b8c
children (none)
#!/usr/bin/env bash

set -euo pipefail

LISP=$1
BINARY=$(basename "$1" .lisp)
shift

sbcl --load "$LISP" --eval "(sb-ext:save-lisp-and-die \"$BINARY\" :executable t :save-runtime-options t :toplevel '$BINARY:toplevel)" "$@"