forked from documentdb/documentdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_versions.sh
More file actions
executable file
·101 lines (88 loc) · 2.37 KB
/
setup_versions.sh
File metadata and controls
executable file
·101 lines (88 loc) · 2.37 KB
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
#!/bin/bash
# fail if trying to reference a variable that is not set.
set -u
# exit immediately if a command exits with a non-zero status
set -e
# declare all the versions of dependencies
LIBBSON_VERSION=1.28.0
# This maps to REL_17_4:f8554dee417ffc4540c94cf357f7bf7d4b6e5d80
IvorySQL_4_REF="IvorySQL_4.5"
# This maps to REL_16_8:71eb35c0b18de96537bd3876ec9bf8075bfd484f
IvorySQL_3_REF="IvorySQL_3.4"
# This maps to REL15_12:50d3d22baba63613d1f1406b2ed460dc9b03c3fc
IvorySQL_2_REF="Ivory_REL_2_3"
# This is commit f3cb3d99eed7dd3db82104ab2a4a13b1233d0023
CITUS_VERSION=v12.1.7
# This is commit d28a5eae6c78935313824d319480632783d48d10
CITUS_13_VERSION=v13.0.1
# This is commit 6a065fd8dfb280680304991aa30d7f72787fdb04
RUM_VERSION=1.3.14
# This is commit 9d0576c64edd90fb3d8ac30763296a8106315638
PG_CRON_VERSION=v1.6.3
# This is commit 2627c5ff775ae6d7aef0c430121ccf857842d2f2
PGVECTOR_VERSION=v0.8.0
POSTGIS_VERSION=3.5.2
INTEL_DECIMAL_MATH_LIB_VERSION=applied/2.0u3-1
PCRE2_VERSION=10.40
UNCRUSTIFY_VERSION=uncrustify-0.68.1
function GetPostgresSourceRef()
{
local ivyVersion=$1
if [ "$ivyVersion" == "4" ]; then
echo $IvorySQL_4_REF
elif [ "$ivyVersion" == "3" ]; then
echo $IvorySQL_3_REF
elif [ "$ivyVersion" == "2" ]; then
echo $IvorySQL_2_REF
else
echo "Invalid PG Version specified $ivyVersion";
exit 1;
fi
}
function GetCitusVersion()
{
local citusVersion=$1
if [ "$IVORYVERSION" == "4" ]; then
echo $CITUS_13_VERSION
elif [ "$citusVersion" == "13" ] || [ "$citusVersion" == "v13.0" ] || [ "$citusVersion" == "$CITUS_13_VERSION" ]; then
echo $CITUS_13_VERSION
# allow the caller to specify the version as 12 or v12.1 or v12.1.6
elif [ "$citusVersion" == "12" ] || [ "$citusVersion" == "v12.1" ] || [ "$citusVersion" == "$CITUS_VERSION" ]; then
echo $CITUS_VERSION
else
echo "Invalid Citus version specified $citusVersion. Please use $CITUS_VERSION'."
exit 1
fi
}
function GetRumVersion()
{
echo $RUM_VERSION
}
function GetLibbsonVersion()
{
echo $LIBBSON_VERSION
}
function GetPgCronVersion()
{
echo $PG_CRON_VERSION
}
function GetPgVectorVersion()
{
echo $PGVECTOR_VERSION
}
function GetIntelDecimalMathLibVersion()
{
echo $INTEL_DECIMAL_MATH_LIB_VERSION
}
function GetPcre2Version()
{
echo $PCRE2_VERSION
}
function GetPostgisVersion()
{
echo $POSTGIS_VERSION
}
function GetUncrustifyVersion()
{
echo $UNCRUSTIFY_VERSION
}