-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·40 lines (30 loc) · 867 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·40 lines (30 loc) · 867 Bytes
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
31
32
33
34
35
36
37
38
39
#!/bin/sh
set -e
set -x
PREFIX=$(readlink -f build-env)
OPENSSL_VERSION="0.9.8r"
test -d $PREFIX || mkdir -v $PREFIX
git submodule sync
git submodule update
# these are both fairly normal autotools projects
cd boost.m4
./bootstrap
./configure --prefix="$PREFIX"
make
make install
cd ../jansson
autoreconf -fvi
./configure --prefix="$PREFIX"
make
make install
# purely JS stuff, just needs to exist in the right place so the rsjs
# symlink has something to point at
cd ../
hg clone https://code.google.com/p/pagedown/ || (cd pagedown && hg pull && hg update && cd ../)
# not a normal autotools project, but does support make install, and --prefix etc.
wget -O/dev/stdout https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | tar -zxv
cd openssl-$OPENSSL_VERSION
./config --prefix="$PREFIX" threads shared zlib-dynamic
make
make test
make install