build-binary.sh 303 B

123456789101112131415
  1. #!/bin/sh
  2. if [ "$#" -lt 1 ]; then
  3. echo "No input file!" 1>&2
  4. exit 1
  5. fi
  6. bin_name="$(basename "$1" .lisp)"
  7. sbcl --load "$1" \
  8. --eval "(sb-ext:save-lisp-and-die \"$bin_name\"
  9. :executable t
  10. :save-runtime-options t
  11. :toplevel '$bin_name:toplevel)"