diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-20 10:41:47 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-20 07:41:47 -0700 |
commit | 2a137e97c430312f87500a7ccbfa8de3702c3920 (patch) | |
tree | 63aa224b538707d5fcf04e37f533cda323cfbd33 /Makefile | |
parent | 4a426be6b8fe0d3e54a8b8269b9848be4df27fe4 (diff) | |
download | chat-2a137e97c430312f87500a7ccbfa8de3702c3920.tar.gz chat-2a137e97c430312f87500a7ccbfa8de3702c3920.tar.bz2 chat-2a137e97c430312f87500a7ccbfa8de3702c3920.zip |
Adding enterprise build hash to about dialog (#3058)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,10 +15,12 @@ BUILD_ENTERPRISE_DIR ?= ../enterprise BUILD_ENTERPRISE ?= true BUILD_ENTERPRISE_READY = false BUILD_TYPE_NAME = team +BUILD_HASH_ENTERPRISE = none ifneq ($(wildcard $(BUILD_ENTERPRISE_DIR)/.),) ifeq ($(BUILD_ENTERPRISE),true) BUILD_ENTERPRISE_READY = true BUILD_TYPE_NAME = enterprise + BUILD_HASH_ENTERPRISE = $(shell cd $(BUILD_ENTERPRISE_DIR) && git rev-parse HEAD) else BUILD_ENTERPRISE_READY = false BUILD_TYPE_NAME = team @@ -37,6 +39,7 @@ GO_LINKER_FLAGS ?= -ldflags \ "-X github.com/mattermost/platform/model.BuildNumber=$(BUILD_NUMBER)\ -X 'github.com/mattermost/platform/model.BuildDate=$(BUILD_DATE)'\ -X github.com/mattermost/platform/model.BuildHash=$(BUILD_HASH)\ + -X github.com/mattermost/platform/model.BuildHashEnterprise=$(BUILD_HASH_ENTERPRISE)\ -X github.com/mattermost/platform/model.BuildEnterpriseReady=$(BUILD_ENTERPRISE_READY)" # Output paths |