-
Notifications
You must be signed in to change notification settings - Fork 16
/
streamline.sh
executable file
·59 lines (53 loc) · 2.66 KB
/
streamline.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
#!/bin/bash
. ./sh/match_ids.sh $1
if [ $2 ]
then
for id in $2
do
printf "===========================================================\n"
printf "Fetching match $id from dataset. Please wait...\n"
printf "===========================================================\n"
clj src/main/io/spit_match.clj --id=$id --championship=$championship
printf "===========================================================\n"
printf "Creating graph...\n"
printf "===========================================================\n"
clj src/main/io/spit_graph.clj --id=$id --championship=$championship
printf "===========================================================\n"
printf "Calculating metrics...\n"
printf "This operations may take a while, please be patient...\n"
printf "===========================================================\n"
clj src/main/io/spit_graph_analysis.clj --id=$id --championship=$championship
printf "Done!\n"
done
printf "===========================================================\n"
printf "Generating filenames... \n"
clj src/main/io/spit_filenames.clj
printf "===========================================================\n"
printf "Generating missing files... \n"
clj src/main/io/spit_missing.clj
printf "===========================================================\n"
else
printf "===========================================================\n"
printf "Fetching matches of $championship from dataset. Please wait...\n"
printf "===========================================================\n"
clj src/main/io/spit_match.clj --id="$ids" --championship=$championship
printf "Done!\n"
printf "===========================================================\n"
printf "Creating graphs for $championship. Please wait...\n"
printf "===========================================================\n"
clj src/main/io/spit_graph.clj --id="$ids" --championship=$championship
printf "Done!\n"
printf "===========================================================\n"
printf "Calculating metrics for $championship. \n"
printf "This operations may take a while, please be patient...\n"
printf "===========================================================\n"
clj src/main/io/spit_graph_analysis.clj --id="$ids" --championship=$championship
printf "Done!\n"
printf "===========================================================\n"
printf "Generating filenames... \n"
clj src/main/io/spit_filenames.clj
printf "===========================================================\n"
printf "Generating missing files... \n"
clj src/main/io/spit_missing.clj
printf "===========================================================\n"
fi