-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sh
executable file
·45 lines (35 loc) · 947 Bytes
/
build.sh
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
40
41
42
43
44
#!/bin/sh
set -e
if [ ! -e /usr/include/gc.h ]
then
echo "\033[31mWARNING\033[0m: missing Boehm garbage collector development \
files."
echo " Ubuntu users can try \"sudo apt-get install libgc-dev\""
fi
if [ ! -x /usr/bin/clang++-4.0 ]
then
echo "\033[31mWARNING\033[0m: the current build assumes clang++-4.0 for \
c++17."
echo " Ubuntu users can install it using the instructions here:"
echo " http://apt.llvm.org/"
fi
make clean
make -j4
cd examples
make clean
make test
make libf2html
make bench
cd ..
for BASENAME in compare list map maybe "set" show string tuple value vector
do
examples/libf2html f${BASENAME}.h > doc/${BASENAME}.html
done
mkdir -p libf++-0.2/
mkdir -p libf++-0.2/include/
mkdir -p libf++-0.2/doc/
cp *.h libf++-0.2/include/
cp doc/*.html libf++-0.2/doc/
cp libf++.so libf++-0.2/
tar cvz --owner root --group root -f libf++-0.2.tar.gz libf++-0.2/
rm -rf libf++-0.2/