-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_against_kde.sh
executable file
·43 lines (38 loc) · 1.07 KB
/
test_against_kde.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
#!/bin/bash
prjs=( )
prjs=($(cut -d ',' -f2 repo_list.csv ))
rm -rf KDE/
mkdir KDE
cd KDE
rm .
for i in "${prjs[@]}"
do
git clone https://github.com/$i.git -q
cd ..
# First we clone the repository
if [[ $(python ./extract.py ./$i/ 2>&1 | grep "^line") ]]; then
echo $i
echo "log:Start analysing $i"
now=$(date)
echo "$now:log:cloning $i"
git clone https://github.com/$i.git -q
cd ..
# echo "log:Start analysing $i"
# echo "git clone https://github.com/$i.git -q"
echo "python ./extract.py ./$i/"
python ./extract.py ./$i/ 2>&1 | grep "^\[enterCommand_invocation\]" >> ./KDE_command_analysis/ignored_commands.txt
FILE=./graph.gv
# First we clone the repository
if [[ ! -f "$FILE" ]]; then
echo "log:Error $i !"
# python ./extract.py ./$i/
echo $i >> ./KDE_command_analysis/issued_repos.txt
else
echo "log:Finished $i successfully!"
name=$(echo $i | tr "/" _)
# echo "log:Finished $i successfully!"
mv ./graph.gv ./graph_dots/$name
fi
cd KDE
done
cd ..