forked from Juniper/contrail-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversions.mk
28 lines (24 loc) · 1.02 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
#
# Version:
# For development packages: <release><branch>~<ref>
# For snapshots: <release><branch>~$(shell date +%Y%m%d)
#
ifdef VERSION
CONTRAIL_VERSION = $(VERSION)
NEUTRON_VERSION = $(VERSION)
CONTRAIL_HEAT_VERSION = $(VERSION)
#WEBUI_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; }')
NEUTRON_REF := $(shell (cd openstack/neutron_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; }')
#WEBUI_REF := $(shell (cd contrail-web-core; git log --oneline -1) | awk '/[0-9a-f]+/ { print $$1; }')
CONTRAIL_VERSION = 1.1master~$(CONTROLLER_REF)
NEUTRON_VERSION = 1.1master~$(NEUTRON_REF)
CONTRAIL_HEAT_VERSION = 1.1master~$(CONTRAIL_HEAT_REF)
#WEBUI_VERSION = 1.1master~$(WEBUI_REF)
endif