aboutsummaryrefslogtreecommitdiffstats
path: root/Lisp/build-lisp-image.sh
blob: 0478f2561afa270fac6d14b5d25f11ecd2f54834 (plain)
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
#!/bin/sh

PATH="$HOME/bin:$PATH"
export PATH

build_clisp()
{
    mkdir -p $topdir/clisp/base
    clisp -i save-moxie-image.lisp
    gzip -c /tmp/lispinit.mem > base/lispinit.mem
    rm -f /tmp/lispinit.mem
}

build_openmcl()
{
    openmcl -e '(load "save-moxie-image.lisp")'
    mv /tmp/dppccl.image .
}

build_sbcl()
{
    sbcl --load "save-moxie-image.lisp"
    mv /tmp/sbcl.core .
}

topdir=`dirname $0`

#(cd "$topdir/clisp" && build_clisp)
#(cd "$topdir/openmcl" && build_openmcl)
(cd "$topdir/sbcl" && build_sbcl)