-
Notifications
You must be signed in to change notification settings - Fork 0
/
exec-tools.sh
executable file
·46 lines (38 loc) · 1.05 KB
/
exec-tools.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
#!/bin/bash
# recebendo o nome do projeto por parametro, podemos usar um arquivo com todos os links e processa-lo
# sh ./run2.sh (nome_projeto) (y -> para baixar / n -> para não baixar)
echo $1
echo $2
if [ ! -d "projects" ]
then
mkdir projects
fi
if [ ! -d "output" ]
then
mkdir output
fi
# ls
if [ $2 != "y" ]
then
echo "nao baixar"
else
cd ./projects
wget http://java.labsoft.dcc.ufmg.br/qualitas.class/corpus/$1.zip
unzip -q $1.zip
cd ..
mkdir output/$1
fi
cd ./projects/$1
if [ -d "bin" ]
then
cd ../..
java -Xms64m -Xmx2048m -jar pattern4.jar -target projects/$1/bin -output output/$1/$1.xml
elif [ -d "classes" ]
then
cd ../..
java -Xms64m -Xmx2048m -jar pattern4.jar -target projects/$1/classes -output output/$1/$1.xml
else
cd ../..
fi
java -jar VocabularyExtractor.jar -n "$1" -r "$1" -d "./projects/$1/src/" -loc iah -vxl "./output/$1/$1.vxl" -csv "./output/$1/$1.csv"
java -jar TermsCounter.jar -prop ./termsCounter.properties -vxl ./output/$1/$1.vxl -csv ./output/$1/$1_Matriz.csv -txt ./output/$1/$1_Info.txt