0.8alpha.0.32:
[sbcl.git] / make-target-contrib.sh
1 #!/bin/sh
2
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.
6
7 # This software is part of the SBCL system. See the README file for
8 # more information.
9 #
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.
15
16 # usually SBCL_HOME refers to the installed root of SBCL, not the
17 # build directory.  Right now, however, where there are dependencies
18 # between contrib packages, we want the _uninstalled_ versions to be
19 # found
20 SBCL_HOME=`pwd`/contrib
21 export SBCL_HOME
22
23 SBCL="`pwd`/src/runtime/sbcl --noinform --core `pwd`/output/sbcl.core --userinit /dev/null --sysinit /dev/null --disable-debugger"
24 SBCL_BUILDING_CONTRIB=1
25 export SBCL SBCL_BUILDING_CONTRIB
26
27 mkdir -p contrib/systems
28 rm -f contrib/systems/*
29
30 for i in contrib/*/*.asd; do
31     ln -sf ../../$i contrib/systems/
32 done
33
34 for i in contrib/*; do
35     test -d $i && test -f $i/Makefile || continue;
36     # export INSTALL_DIR=$SBCL_HOME/`basename $i `
37     test -f $i/test-passed && rm $i/test-passed 
38     $GNUMAKE -C $i test && touch $i/test-passed
39 done