[9a2d58]: slam.sh Maximize Restore History

Download this file

slam.sh    65 lines (54 with data), 2.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
# ("smooth duct tape: the mark of a true craftsman":-)
# a quick and dirty way of partially rebuilding the system after a
# change
#
# This script is not a reliable way to build the system, but it is
# fast.:-| It can be useful if you are trying to debug a low-level
# problem, e.g. a problem in src/runtime/*.c or in
# src/code/cold-init.lisp, and you find yourself wanting to make a
# small change and test it without going through the entire
# build-the-system-from-scratch cycle.
#
# You probably don't want to be using this script unless you
# understand the system build process well enough to be able to guess
# when it won't work.
# This software is part of the SBCL system. See the README file for
# more information.
#
# This software is derived from the CMU CL system, which was
# written at Carnegie Mellon University and released into the
# public domain. The software is in the public domain and is
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
if [ "" != "$*" ]; then
echo no command line arguments supported in this version of slam
exit 1
fi
# We don't try to be general about this in this script the way we are
# in make.sh, since (1) we use our command line args as names of files
# to recompile, and (2) the idiosyncrasies of SBCL command line
# argument order dependence, the meaninglessness of duplicate --core
# arguments, and the SBCL-vs-CMUCL dependence of --core/-core argument
# syntax make it too messy to try deal with arbitrary SBCL commands.
# So you have no choice:
export SBCL_XC_HOST='sbcl --noprogrammer'
# (We don't do make-host-1.sh at all. Hopefully nothing relevant has
# changed.)
sh make-target-1.sh || exit 1
# Instead of doing the full make-host-2.sh, we (1) use after-xc.core
# to rebuild only obviously-out-of-date Lisp files, then (2) run
# GENESIS.
sbcl --core output/after-xc.core <<'EOF' || exit 1
(load "src/cold/slam.lisp")
EOF
# (This ^ used to be
# for f in $*; do echo "(target-compile-stem \"$f\")"; done \
# | sbcl --core output/after-xc.core || exit 1
# and perhaps we do something like this again, allowing explicit
# rebuild-this-stem requests on the command line to supplement
# the rebuild-obviously-outdated-stems logic above.)
#
sh make-genesis-2.sh || exit 1
sh make-target-2.sh || exit 1
echo /ordinary termination of slam.sh