1.0.18.22: DX arguments in non-let-converted local calls
[sbcl/pkhuong.git] / run-sbcl.sh
blobf7ddb22333205c86393416ace9a4a07b0f7fd2b8
1 # A simple shell-script to run the freshly build SBCL without
2 # installing it. Expects to be run from the top of the SBCL source
3 # tree.
5 # This software is part of the SBCL system. See the README file for
6 # more information.
8 # This software is derived from the CMU CL system, which was
9 # written at Carnegie Mellon University and released into the
10 # public domain. The software is in the public domain and is
11 # provided with absolutely no warranty. See the COPYING and CREDITS
12 # files for more information.
14 set -e
16 if [ "$1" = "--help" ]; then
17 echo "usage: run-sbcl.sh sbcl-options*"
18 echo
19 echo "Runs SBCL from the build directory or binary tarball without need for"
20 echo "installation. Except for --help and --core, accepts all the same"
21 echo "command-line options as SBCL does."
22 echo
23 echo "Expects the current directory to be the topmost directory of the SBCL"
24 echo "source tree or binary tarball."
25 echo
26 exit 1
29 if [ -f sbcl-pwd.sh -a -x src/runtime/sbcl -a -f output/sbcl.core ]; then
30 . ./sbcl-pwd.sh
31 sbcl_pwd
32 echo "(running SBCL from: $SBCL_PWD)"
33 SBCL_HOME=$SBCL_PWD/contrib src/runtime/sbcl --core output/sbcl.core $@
34 elif [ -f run-sbcl.sh -a -f version.lisp-expr ]; then
35 echo "No built SBCL here ($(pwd)): run 'sh make.sh' first!"
36 exit 1
37 else
38 echo "No SBCL here ($(pwd))!"
39 echo
40 echo "run-sbcl.sh needs to be run from the top of the SBCL source tree or"
41 echo "binary tarball."
42 exit 1