blob: d4d905db95c08fbd3d829fcf7c5560fd95f86b9a (
plain)
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
|
# Declare the packages that were updated between versions here. Each
# package must provide a "make install" procedure that will allow to
# update packages from CVS.
#
# These are the packages that were updated from Kolab Server version
# 2.2.4 to 2.2.5.
UPDATES_2.2.4_2.2.5=kolabd \
# Set the new version we are aiming at after each release.
CVS_VERSION=2.2.5
# Determines the current version
CURRENT_VERSION=$(shell $(KOLABDIR)/bin/openpkg rpm -q kolabd | sed -e 's/kolabd-\([0-9.]*\)-[0-9]*/\1/')
KOLAB_SERVER_CVS=KOLAB_SERVER-$(CVS_VERSION)
KOLAB_SERVER_CURRENT=KOLAB_SERVER-$(CURRENT_VERSION)
.PHONY: update
update: current
.PHONY:current
current: $(KOLAB_SERVER_CVS)
.PHONY:$(KOLAB_SERVER_CVS)
$(KOLAB_SERVER_CVS): KOLAB_SERVER-2.2.4
for UPDATE in $(UPDATES_2.2.4_2.2.5); \
do \
make -C $$UPDATE install || exit $$?; \
done
ifeq "x$(KOLAB_SERVER_CURRENT)" "xKOLAB_SERVER-2.2.4"
.PHONY:KOLAB_SERVER-2.2.4
KOLAB_SERVER-2.2.4:
@echo "You are using Kolab Server 2.2.4. Updating from there..."
else
.PHONY:KOLAB_SERVER-2.2.4
KOLAB_SERVER-2.2.4:
@echo "You are using Kolab Server $(CURRENT_VERSION)."
@echo "The update operation is not supported for server versions below 2.2.4"
@exit 1
endif
|