-
Notifications
You must be signed in to change notification settings - Fork 7
/
versions.mk
34 lines (30 loc) · 1.43 KB
/
versions.mk
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
#
# Version:
# For development packages: <release><branch>~<ref>
# For snapshots: <release><branch>~$(shell date +%Y%m%d)
#
ifdef VERSION
CONTRAIL_VERSION = $(VERSION)
NEUTRON_VERSION = $(VERSION)
CEILOMETER_VERSION = $(VERSION)
CONTRAIL_HEAT_VERSION = $(VERSION)
WEBUI_CORE_VERSION = $(VERSION)
WEBUI_CONTROLLER_VERSION = $(VERSION)
else
#
# Use the git reference of the controller repository as a version id.
# TODO: store the git refs for all projects in the manifest in a file
#
CONTROLLER_REF := $(shell (cd controller; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
WEBUI_CORE_REF := $(shell (cd contrail-web-core; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
WEBUI_CONTROLLER_REF := $(shell (cd contrail-web-controller; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
NEUTRON_REF := $(shell (cd openstack/neutron_plugin; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
CEILOMETER_REF := $(shell (cd openstack/ceilometer_plugin; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
CONTRAIL_HEAT_REF := $(shell (cd openstack/contrail-heat; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
CONTRAIL_VERSION = 1.1master~$(CONTROLLER_REF)
WEBUI_CORE_VERSION = 1.1master~$(CONTROLLER_REF)
WEBUI_CONTROLLER_VERSION = 1.1master~$(CONTROLLER_REF)
NEUTRON_VERSION = 1.1master~$(NEUTRON_REF)
CEILOMETER_VERSION = 1.1master~$(CEILOMETER_REF)
CONTRAIL_HEAT_VERSION = 1.1master~$(CONTRAIL_HEAT_REF)
endif