-
Notifications
You must be signed in to change notification settings - Fork 1
/
QualityIndicators.sh
108 lines (82 loc) · 1.9 KB
/
QualityIndicators.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
106
#!/bin/sh
#Created by: Lucas Prestes - lucas.prestes.lp@gmail.com
# All Rscript result and PDFs result will be created on:
# "./experiment/MyExperiments/Result/" (Default path)
# $1 is the argument to change default path
# For use in JMEtal 5.2
newPath=$1
shift #remove first arg, is the path
java -jar JMetal.jar --comparative $*
cd "./experiment/";
path="Result/"
if [ -z $newPath ]; then
echo "Default Path! ./experiment/MyExperiments/"$path
else
path=$newPath
echo "Change Path to: ./experiment/MyExperiments/"$path
fi
#################################
#USING LATEX AND DVI
#TO GENERATE .DVI
echo "Executing tex and dvi..."
cd "./MyExperiments/latex/";
for i in *.tex ; do
latex $i 2>/dev/null;
done
#TO GENERATE .PDF
for i in *.dvi ; do
dvipdf $i 2>/dev/null;
done
#CREATE RESULT DIR on "./MyExperiments/Result/
mkdir "../"$path;
#TO MOVEMENT FILES
for i in *.pdf ; do
mv $i "../"$path;
done
# REMOVE *.log | *.aux | *.dvi
# Remove ONLY auxiliars files
echo "Removing auxiliar files...";
for i in *.log; do rm $i; done
for i in *.aux; do rm $i; done
for i in *.dvi; do rm $i; done
#for i in *.pdf; do rm $i; done
#################################
#USING R
#TO GENERATE .EPS
echo "Moving files..."
cd "../R/";
for i in *.R ; do
Rscript $i 2>/dev/null;
done
for i in *.tex ; do
latex $i 2>/dev/null;
done
for i in *.dvi ; do
dvipdf $i 2>/dev/null;
done
for i in *.log; do rm $i; done
for i in *.aux; do rm $i; done
for i in *.dvi; do rm $i; done
#MOVE .EPS to Result
for i in *.eps ; do
mv $i "../"$path;
done
for i in *.pdf ; do
mv $i "../"$path;
done
#DELETE .EPS
#for i in *.eps; do rm $i; done
#################################
cd "../";
mv Execute_log_algorithm.txt "./"$path;
mv Execute_log.txt "./"$path;
mv "./latex" "./"$path;
mv "./R" "./"$path;
cd "./EvolutionProcess/";
Rscript "main.R"
cd "../";
mv "./EvolutionProcess" "./"$path;
#clear
echo "
Done!";
#################################