-
Notifications
You must be signed in to change notification settings - Fork 3
/
install_vsteno.sh
87 lines (82 loc) · 2.5 KB
/
install_vsteno.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
#!/bin/bash
if [ $(whoami) == "root" ]; then
echo "ERROR: run this script as normal user ./install_vsteno version"
exit 1
fi
if [ -z $1 ]; then
echo "ERROR: you must give a version as argument: ./install_vsteno version"
echo "Valid arguments for version are:"
echo "0.3: version 0.3 (Hyperion)"
echo "Hyperion: same as preceeding"
echo "0.2: version 0.2 (Ariadne)*"
echo "Ariadne: same as preceeding*"
echo "0.1: version 0.1 (Hephaistos)*"
echo "Hephaistos: same as preceeding*"
echo "lateststable: lastest stable version"
echo "latest: latest version (might not work properly)"
echo "commit: any commit number from https://github.com/marcelmaci/vsteno"
echo "(* obsolete version (only listed for historical reasons)"
exit 1
fi
echo "Install VSTENO version: $1"
case "$1" in
Hephaistos)
version_number=0.1
version_name=Hephaistos
version_date="26/07/19"
commit=4f09ae3ab48e06fb2357a7437a7fcf9321e3c6f6
;;
0.1)
version_number=0.1
version_name=Hephaistos
version_date="26/07/19"
commit=4f09ae3ab48e06fb2357a7437a7fcf9321e3c6f6
;;
Ariadne)
version_number=0.2
version_name=Ariadne
version_date="30/11/19"
commit=d36ae5e9ac1e70720a07fac83156212e036d1d89
;;
0.2)
version_number=0.2
version_name=Ariadne
version_date="30/11/19"
commit=d36ae5e9ac1e70720a07fac83156212e036d1d89
;;
Hyperion)
version_number=0.3
version_name=Hyperion
version_date="22/03/20"
commit=c09d834dc133142612c85c598cdb45d19bbdce57
;;
0.3)
version_number=0.3
version_name=Hyperion
version_date="22/03/20"
commit=c09d834dc133142612c85c598cdb45d19bbdce57
;;
lateststable)
version_number=lateststable
version_name=Hyperion
version_date="10/04/20"
commit=d9df55086b0b4f177b83060198c01f50850e81d8
;;
latest)
version_number=latest
version_name=Hyperion
version_date="10/04/20"
commit=origin/master
;;
*)
commit=$1
esac
echo "Version $1 corresponds to commit: $commit"
# export variable to make it available for following scripts
export version_number
export version_name
export version_date
export commit
./install_tools.sh
./download_vsteno.sh
./configure_database.sh