1.0.29.53: ...really this time...
[sbcl/pkhuong.git] / run-sbcl.sh
blobd14b202778d93878a2585aaa17793ecbd787e209
1 #!/bin/sh
2 # A simple shell-script to run the freshly build SBCL without
3 # installing it.
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 exit 1
26 BASE=`dirname "$0"`
28 if [ -x "$BASE"/src/runtime/sbcl -a -f "$BASE"/output/sbcl.core ]; then
29 echo "(running SBCL from: $BASE)"
30 SBCL_HOME="$BASE"/contrib \
31 "$BASE"/src/runtime/sbcl --core "$BASE"/output/sbcl.core "$@"
32 else
33 echo "No built SBCL here ($BASE): run 'sh make.sh' first!"
34 exit 1