-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·61 lines (53 loc) · 1.25 KB
/
install.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
#!/bin/bash
trap "exit" INT
echo "Installing JPFShadow+ ..."
workingDir=$(pwd)
# Write site.properites file.
sitePropFile="$HOME/.jpf/site.properties"
echo "Prepare properties file: $sitePropFile ..."
if [ -e $sitePropFile ]
then
rm $sitePropFile
fi
touch $sitePropFile
echo "jpf-core = $workingDir/jpf-core" >> $sitePropFile
echo "jpf-symbc = $workingDir/jpf-symbc" >> $sitePropFile
echo "jpf-shadow = $workingDir/jpf-shadow" >> $sitePropFile
echo "jpf-shadow-plus = $workingDir/jpf-shadow-plus" >> $sitePropFile
echo "extensions=\${jpf-core},\${jpf-symbc},\${jpf-shadow},\${jpf-shadow-plus}" >> $sitePropFile
# Build jpf-core
echo "Build jpf-core ..."
cd "jpf-core"
rm -f build.log
ant clean >> build.log
ant >> build.log
cd ..
# Build jpf-symbc
echo "Build jpf-symbc ..."
cd "jpf-symbc"
rm -f build.log
ant clean >> build.log
ant >> build.log
cd ..
# Build jpf-shadow
echo "Build jpf-shadow ..."
cd "jpf-shadow"
rm -f build.log
ant clean >> build.log
ant >> build.log
cd ..
# Build SootConnection
echo "Build SootConnection ..."
cd "SootConnection"
rm -f build.log
ant clean >> build.log
ant >> build.log
cd ..
# Build jpf-shadow-plus
echo "Build jpf-shadow-plus ..."
cd "jpf-shadow-plus"
rm -f build.log
ant clean >> build.log
ant >> build.log
cd ..
echo "Done."