-
Notifications
You must be signed in to change notification settings - Fork 613
/
bootstrap.sh
executable file
·52 lines (40 loc) · 1.17 KB
/
bootstrap.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
45
46
47
48
49
50
51
#!/bin/bash
prefix=`pwd`
clean_deps_tmp()
{
rm -rf $prefix/deps/tbsys-install
rm -rf $prefix/deps/libeasy-install
}
if [ "$1" == "clean" ]; then
# clean deps
clean_deps_tmp
cd $prefix/deps/tbsys/
./build.sh clean > /dev/null 2>&1
cd $prefix/deps/libeasy
./bootstrap.sh clean > /dev/null 2>&1
cd $prefix
# clean tair
make distclean &>/dev/null
rm -rf aclocal.m4 autom4te.cache config.guess config.sub configure depcomp INSTALL install-sh ltmain.sh missing config.log config.status libtool compile
rm -f *.rpm *.gz
find . -name 'Makefile' -exec rm -f {} \;
find . -name '.deps' -exec rm -rf {} \;
find . -name '.libs' -exec rm -rf {} \;
find . -name 'Makefile.in' -exec rm -f {} \;
exit;
fi
# install deps
if [ "$1" != "skip-deps" ]; then
clean_deps_tmp
cd $prefix/deps/tbsys/
./build.sh
cd $prefix/deps/libeasy
./bootstrap.sh
./configure --prefix=$prefix/deps/libeasy-install --libdir=$prefix/deps/libeasy-install/lib64 --enable-static=yes --enable-shared=no
make -j && make install
cd $prefix
fi
libtoolize --force
aclocal
autoconf
automake --add-missing --force --warnings=no-portability