-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitgoblin.sh
executable file
·49 lines (38 loc) · 969 Bytes
/
gitgoblin.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
#!/bin/sh
#variable for the goblint git url
goblint_url="https://github.com/goblint/analyzer"
#Variables for the goblint and goblinit location paths
#change accordingly to desired location
goblint_path=${PWD}/analyzer
goblinit_path=${PWD}
sv_comp_url="https://github.com/sosy-lab/sv-benchmarks"
#Functiondeclarations:
#Function to Pull and setup goblint
#need make and git
goblint_init(){
git clone $goblint_url
cd $goblint_path
sudo make setup
sudo make
eval $(opam env)
cd $goblinit_path
sudo add-apt-repository ppa:sosy-lab/benchmarking
sudo apt install benchexec
git clone $sv_comp_url
}
#Function to pull newest goblint at the variable of the goblint path
goblint_pull(){
cd $goblint_path
git pull
cd $goblinit_path
}
#Main:
#if the parameter n is given to this script, goblint will be freshly cloned form the giturl
while getopts n opt
do
case "$opt" in
n) goblint_init
esac
done
#a new version of goblint will be pulled
goblint_pull