-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathc_client_prepare_machine.sh
executable file
·105 lines (87 loc) · 1.57 KB
/
c_client_prepare_machine.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/sh
while getopts ":p:" opt; do
case $opt in
p) WORKPATH="$OPTARG"
;;
*) echo "Available parameters: -p (workpath) Example: -p '/home/ci-vfk'"
;;
esac
done
if [ "$WORKPATH" = '' ]
then
echo "The work path has to be set (use -p option)"
exit 1
fi
sudo apt update
sudo apt --yes install git \
autoconf \
automake \
libtool \
build-essential \
cmake \
libssl-dev \
libcurl4-openssl-dev \
uuid-dev \
python-dev \
lcov
if [ -d $WORKPATH ]
then
:
else
mkdir $WORKPATH
fi
cd $WORKPATH
if [ -d "git" ]
then
:
else
mkdir git
fi
cd git
if [ -d "json-c" ]
then
echo "Remove json-c folder content"
rm -rf json-c
fi
if [ -d "nopoll" ]
then
echo "Remove nopoll folder content"
rm -rf nopoll
fi
if [ -d "uriparser" ]
then
echo "Remove uriparser folder content"
rm -rf uriparser
fi
if [ -d "libxml2" ]
then
echo "Remove libxml2 folder content"
rm -rf libxml2
fi
git clone https://github.com/json-c/json-c.git
cd json-c
git checkout json-c-0.13
sh autogen.sh
./configure
make && sudo make install
cd ..
git clone https://github.com/ASPLes/nopoll.git
#git clone https://github.com/research-virtualfortknox/nopoll.git
cd nopoll
#git checkout tags/0.4.6
git checkout master
sh autogen.sh
make && sudo make install
cd ..
git clone https://github.com/uriparser/uriparser.git
cd uriparser
git checkout tags/uriparser-0.8.6
sh autogen.sh
./configure --disable-test --disable-doc
make && sudo make install
cd ..
git clone https://github.com/GNOME/libxml2.git
cd libxml2
git checkout tags/v2.9.8
sh autogen.sh
make && sudo make install