#!/bin/sh ## This scripts generates a new SBCL executable that embeds many useful libraries. ## This is useful to create script with low startup overhead. ## To create a script, use the following shabang: ## #!/path/to/sbclscript --script # TODO: Add command line option to enable debug. # Or can we do this from scripts? Config file? # (declaim (optimize (speed 0) (space 0) (debug 3))) sbcl --eval " (mapc 'require '(sb-bsd-sockets sb-posix sb-introspect sb-cltl2 alexandria asdf bordeaux-threads cl-ppcre cl-ppcre-unicode closer-mop fset iolib local-time log4cl ;; lparallel ;; moptilities osicat quri serapeum series str trivia trivial-package-local-nicknames trivial-types unix-opts)) " \ --eval " (save-lisp-and-die (format nil \"~a/.local/bin/sbclscript\" (uiop:getenv \"HOME\")) :executable t) "