Turn docstrings into base-strings.
[sbcl.git] / make-target-contrib.sh
blob44ae69b7203399602f9ae3849f2101fcaba30a86
1 #!/bin/sh
2 set -e
4 # This is a script to be run as part of make.sh. The only time you'd
5 # probably want to run it by itself is if you're cross-compiling the
6 # system or doing some kind of troubleshooting.
8 # This software is part of the SBCL system. See the README file for
9 # more information.
11 # This software is derived from the CMU CL system, which was
12 # written at Carnegie Mellon University and released into the
13 # public domain. The software is in the public domain and is
14 # provided with absolutely no warranty. See the COPYING and CREDITS
15 # files for more information.
17 echo //entering make-target-contrib.sh
19 LANG=C
20 LC_ALL=C
22 # Just doing CC=${CC:-cc} may be enough, but it needs to be checked
23 # that cc is available on all platforms.
24 if [ -z "$CC" ]; then
25 if [ -x "`command -v cc`" ]; then
26 CC=cc
27 else
28 CC=gcc
32 unset EXTRA_CFLAGS # avoid any potential interference
33 export CC LANG LC_ALL
35 # Load our build configuration
36 . output/build-config
38 ## All programs spawned by make-target-contrib.sh that use this
39 ## variable or anything derived from it are started with CWD
40 ## contrib/<contrib_name>/. Keeping this a relative pathname to the
41 ## toplevel source directory makes the shell and make portions of the
42 ## build system robust against funny stuff in PWD.
43 SBCL_TOP="../../"
45 SBCL_HOME="$SBCL_TOP/obj/sbcl-home"
46 export SBCL_HOME SBCL_TOP
48 SBCL="$SBCL_TOP/src/runtime/sbcl --noinform --core $SBCL_TOP/output/sbcl.core \
49 --lose-on-corruption --disable-debugger --no-sysinit --no-userinit"
50 export SBCL
52 set -e # exit with failure if any $GNUMAKE fails
53 if [ -z "$*" ]; then
54 $GNUMAKE $SBCL_MAKE_JOBS -k -C contrib
55 else
56 for x in "$@"; do
57 $GNUMAKE -C contrib $x.fasl
58 done