forked from piboye/conet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_deps.sh
executable file
·67 lines (57 loc) · 1.32 KB
/
get_deps.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
echo "get thirdparty"
if [[ ! -d thirdparty ]]
then
git clone https://github.com/piboye/thirdparty thirdparty
fi
echo "get blade"
which blade
if (( $? != 0 ))
then
git clone https://github.com/chen3feng/typhoon-blade.git blade/
(cd blade; ./install)
. ~/bin/bladefunctions
fi
cp -r tools/* ~/bin/
exit
echo "get gtest"
if [[ ! -d gtest ]]
then
svn checkout http://googletest.googlecode.com/svn/trunk/ gtest
(cd gtest; cmake -f CMakeLists.txt)
#else
#(cd gtest; svn update)
fi
cp GTEST_BUILD gtest/BUILD
cp -fr gtest/include/gtest include/
echo "get gmock"
if [[ ! -d gmock ]]
then
svn checkout http://googlemock.googlecode.com/svn/trunk/ gmock
(cd gmock; cmake -f CMakeLists.txt; make)
#else
#(cd gmock; svn update)
fi
cp GMOCK_BUILD gmock/BUILD
cp -fr gmock/include/gmock include/
cp -fr gmock/gtest/include/gtest include/
echo "get glog"
if [[ ! -d glog ]]
then
svn checkout http://google-glog.googlecode.com/svn/trunk/ glog
(cd glog; ./configure)
#else
#(cd glog; svn update)
fi
cp GLOG_BUILD glog/BUILD
cp -r glog/src/glog include/
echo "get gflags"
if [[ ! -d gflags ]]
then
git clone https://code.google.com/p/gflags/
(cd gflags; cmake -f CMakeLists.txt)
#else
#(cd glog; svn update)
fi
cp GFLAGS_BUILD gflags/BUILD
cp -r gflags/include/gflags include/