0.6.12.7.flaky1:
[sbcl.git] / slam.sh
1 #!/bin/sh
2
3 # a quick and dirty way of partially rebuilding the system after a
4 # change
5 #
6 # This script is not a reliable way to build the system, but it is
7 # fast.:-| It can be useful if you are trying to debug a low-level
8 # problem, e.g. a problem in src/runtime/*.c or in src/code/unix.lisp,
9 # and you find yourself wanting to make a small change and test it
10 # without going through the entire build-the-system-from-scratch
11 # cycle.
12 #
13 # You probably don't want to be using this script unless you
14 # understand the system build process to be able to guess when it
15 # won't work.
16
17
18 # This software is part of the SBCL system. See the README file for
19 # more information.
20 #
21 # This software is derived from the CMU CL system, which was
22 # written at Carnegie Mellon University and released into the
23 # public domain. The software is in the public domain and is
24 # provided with absolutely no warranty. See the COPYING and CREDITS
25 # files for more information.
26
27
28 export SBCL_XC_HOST="${1:-sbcl --noprogrammer}"
29
30 # (We don't do make-host-1.sh at all. Hopefully nothing relevant has
31 # changed.)
32
33 sh make-target-1.sh || exit 1
34
35 # Instead of doing the full make-host-2.sh, we (1) use after-xc.core
36 # to rebuild only the specifically-requested Lisp files (or skip
37 # after-xc.core completely if no Lisp files are specifically
38 # requested), then (2) run GENESIS.
39 #
40 # Our command line arguments are the stems that we'll use
41 # after-xc.core to recompile. If there are no command line arguments,
42 # though, make a point of not calling after-xc.core, since it might
43 # not exist, and there's no point in causing a fatal failure (by
44 # unsuccessfully trying to execute it) unnecessarily.
45 if [ "$*" != "" ] ; then 
46     # Actually, I wrote this script when I needed to do a lot of
47     # tweaking in src/runtime/*.c, and I haven't tried to make it 
48     # work for src/code/*.c yet. -- WHN 2001-05-12
49     echo stub: no support yet for after-xc.core
50     exit 1
51 fi
52 sh make-genesis-2.sh || exit 1 
53
54 sh make-target-2.sh || exit 1
55
56 echo /ordinary termination of slam.sh