-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo.sh
More file actions
46 lines (40 loc) · 797 Bytes
/
go.sh
File metadata and controls
46 lines (40 loc) · 797 Bytes
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
#!/bin/bash
extra=""
if [[ $1 ]]
then
if [[ ! $1 =~ ^[0-9]+$ ]] || [[ $1 =~ ^[0]+$ ]]
then
echo "incorrect size"
exit 1
fi
extra="$1"
fi
./scripts/build_apps.sh "$extra"
t_output=$?
if [[ $t_output != 0 ]]; then
echo "problem with building apps"
exit 2
fi
echo " builded"
./scripts/update_data.sh
t_output=$?
if [[ $t_output != 0 ]]; then
echo "problem with updating data"
exit 3
fi
echo " updated"
python3 "./scripts/make_preproc.py"
t_output=$?
if [[ $t_output != 0 ]]; then
echo "problem with making preproc data"
exit 4
fi
echo " preproc is made"
python3 "./scripts/make_postproc.py" "$extra"
t_output=$?
if [[ $t_output != 0 ]]; then
echo "problem with postproc data"
exit 5
fi
echo " postproc is made"
echo "done"