1#!/bin/bash
2
3set -e
4
5if [[ ! -e quicklisp.lisp ]]; then curl -O https://beta.quicklisp.org/quicklisp.lisp; fi
6sbcl --load quicklisp.lisp \
7     --eval "(ignore-errors (quicklisp-quickstart:install :path \"quicklisp/\"))" \
8     --eval "(load \"quicklisp/setup.lisp\")" \
9     --eval "(quicklisp:bundle-systems '(#:puri #:usocket #:closer-mop #:trivial-utf-8 #:ieee-floats #:trivial-gray-streams #:alexandria #:bordeaux-threads #:cl-ppcre #:fiasco #:net.didierverna.clon) :to \"externals/\")" \
10     --eval "(quit)" \
11     --no-userinit
12if [[ ! -e backport-update.zip ]]; then
13    curl -O -L https://github.com/TurtleWarePL/de.setf.thrift/archive/backport-update.zip;
14fi
15mkdir -p lib
16unzip -u backport-update.zip -d lib
17