Model Parse - Buttons
[clnl] / bin / buildlinuxexec.sh
1 #!/bin/bash
2
3 # This script builds a verion of sbcl with the libraries pre loaded
4 # for ease of travis.  Remember to update bin/buildosxsbcl when you
5 # update this.
6
7 mkdir -p tmp/sbcl
8
9 cwd=$PWD
10 ( cd tmp &&
11   tar jxf ../deps/linux/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 &&
12   cd sbcl-1.2.6-x86-64-linux/ &&
13   SBCL_HOME="" INSTALL_ROOT=$cwd/tmp/sbcl/ bash install.sh )
14
15 mkdir -p tmp/deps/
16
17 ( cd tmp/deps &&
18   tar zxf ../../deps/common-lisp/clnl-gltk_0.1.tar.gz &&
19   tar zxf ../../deps/common-lisp/3b-cl-opengl-993d627.tar.gz &&
20   tar zxf ../../deps/common-lisp/alexandria-b1c6ee0.tar.gz &&
21   tar zxf ../../deps/common-lisp/babel_0.5.0.tar.gz &&
22   tar zxf ../../deps/common-lisp/cffi_0.15.0.tar.gz &&
23   tar zxf ../../deps/common-lisp/cl-ppcre.tar.gz &&
24   tar zxf ../../deps/common-lisp/ironclad.tar.gz &&
25   tar zxf ../../deps/common-lisp/mt19937-latest.tar.gz &&
26   tar zxf ../../deps/common-lisp/nibbles-v0.12.tar.gz &&
27   tar zxf ../../deps/common-lisp/trivial-features_0.8.tar.gz &&
28   tar zxf ../../deps/common-lisp/ieee-floats-92e481a.tar.gz &&
29   tar zxf ../../deps/common-lisp/strictmath_0.1.tar.gz
30 )
31
32 SBCL_HOME="" tmp/sbcl/bin/sbcl --core tmp/sbcl/lib/sbcl/sbcl.core \
33   --eval "(require 'asdf)" \
34   --eval "(asdf:initialize-source-registry '(:source-registry (:tree \"${PWD}/tmp/deps\") (:tree \"${PWD}/src/main\") :IGNORE-INHERITED-CONFIGURATION))" \
35   --eval "(asdf:load-system :clnl)" \
36   --eval "(asdf:load-system :clnl-extension-cli)" \
37   --eval "(asdf:clear-output-translations)" \
38   --eval '(sb-ext:save-lisp-and-die "clnl" :executable t :toplevel (function clnl:run))'
39
40 chmod +x clnl
41
42 rm -rf tmp