fancy-build/magic
2020-10-04 16:11:08 -07:00

12 lines
429 B
Bash
Executable File

#!/bin/sh
#lisp=ccl
lisp=sbcl
case $1 in
run) rlwrap $lisp --eval "(require :asdf)" --eval "(asdf:load-system :fb)" --eval "(in-package :fancybuild)" --eval "(defun reload () (asdf:load-system :fb) (main))" --eval "(main)" ;;
image) $lisp --eval "(require :asdf)" --eval "(asdf:make :fb/image)" ;;
build) $lisp --eval "(require :asdf)" --eval "(asdf:make :fb/release)" ;;
*) echo "Usage: $0 <run|image|build>"; exit 1
esac