3 # This is a script to be run as part of make.sh. The only time you'd
4 # probably want to run it by itself is if you're cross-compiling the
5 # system or doing some kind of troubleshooting.
7 # This software is part of the SBCL system. See the README file for
10 # This software is derived from the CMU CL system, which was
11 # written at Carnegie Mellon University and released into the
12 # public domain. The software is in the public domain and is
13 # provided with absolutely no warranty. See the COPYING and CREDITS
14 # files for more information.
19 # usually SBCL_HOME refers to the installed root of SBCL, not the
20 # build directory. Right now, however, where there are dependencies
21 # between contrib packages, we want the _uninstalled_ versions to be
23 SBCL_HOME
=`pwd`/contrib
26 SBCL
="`pwd`/src/runtime/sbcl --noinform --core `pwd`/output/sbcl.core --userinit /dev/null --sysinit /dev/null --disable-debugger"
27 SBCL_BUILDING_CONTRIB
=1
28 export SBCL SBCL_BUILDING_CONTRIB
30 # deleting things here lets us not worry about interaction with stale
31 # fasls. This is not good, but is better than :FORCE on each asdf
32 # operation, because that causes multiple builds of base systems such
33 # as SB-RT and SB-GROVEL, but FIXME: there's probably a better
34 # solution. -- CSR, 2003-05-30
36 find contrib
/ \
( -name '*.fasl' -o -name 'foo.c' -o -name 'a.out' -o -name 'alien.so' -o -name '*.o' \
) \
39 mkdir
-p contrib
/systems
40 rm -f contrib
/systems
/*
42 for i
in contrib
/*/*.asd
; do
43 ln -sf ..
/..
/$i contrib
/systems
/
46 for i
in contrib
/*; do
47 test -d $i && test -f $i/Makefile ||
continue;
48 # export INSTALL_DIR=$SBCL_HOME/`basename $i `
49 test -f $i/test-passed
&& rm $i/test-passed
50 $GNUMAKE -C $i test && touch $i/test-passed