-
Notifications
You must be signed in to change notification settings - Fork 6
/
package-all.sh
executable file
·47 lines (41 loc) · 1.17 KB
/
package-all.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
#!/bin/bash
function die() {
echo "$@" >&2
exit 1
}
function make_package() {
make package \
ZABBIX_VERSION="$1" \
TARGET_MANAGER="$2" \
TARGET_OS="$3" \
TARGET_OS_MAJOR="$4" \
TARGET_ARCH="$5" \
|| die "Package build failed"
}
# only build package given from command line
if [[ $# -gt 0 ]]; then
make dist
make_package $@
exit 0
fi
# build all packages
make docker-images || die
make dist || die
make_package 2.2.16 yum centos 6 x86_64
make_package 2.2.16 yum centos 7 x86_64
make_package 2.2.16 apt debian wheezy amd64
make_package 2.2.16 apt debian jessie amd64
make_package 2.2.16 apt ubuntu precise amd64
make_package 2.2.16 apt ubuntu trusty amd64
make_package 3.0.7 yum centos 6 x86_64
make_package 3.0.7 yum centos 7 x86_64
make_package 3.0.7 apt debian wheezy amd64
make_package 3.0.7 apt debian jessie amd64
make_package 3.0.7 apt ubuntu trusty amd64
make_package 3.0.7 apt ubuntu xenial amd64
make_package 3.2.3 yum centos 6 x86_64
make_package 3.2.3 yum centos 7 x86_64
make_package 3.2.3 apt debian wheezy amd64
make_package 3.2.3 apt debian jessie amd64
make_package 3.2.3 apt ubuntu trusty amd64
make_package 3.2.3 apt ubuntu xenial amd64