MKT_PROJECT_VERSION_CHANNEL ?= $(shell git rev-parse --abbrev-ref HEAD | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]//g') ifeq ($(MKT_PROJECT_VERSION_CHANNEL),develop) MKT_PROJECT_SHORT_VERSION_CHANNEL ?= dev else ifeq ($(MKT_PROJECT_VERSION_CHANNEL),testing) MKT_PROJECT_SHORT_VERSION_CHANNEL ?= tst else ifeq ($(MKT_PROJECT_VERSION_CHANNEL),stable) MKT_PROJECT_SHORT_VERSION_CHANNEL ?= stb else MKT_PROJECT_SHORT_VERSION_CHANNEL ?= $(shell echo "$(MKT_PROJECT_VERSION_CHANNEL)" | sed -e 's/[aeiouy]//g' | cut -c1-3) endif MKT_PROJECT_VERSION_DATE ?= $(shell date +%Y.%-m.%-d) MKT_PROJECT_VERSION_TIMESTAMP ?= $(shell date +%-H%M) MKT_PROJECT_VERSION ?= $(MKT_PROJECT_VERSION_DATE)-$(MKT_PROJECT_VERSION_CHANNEL).$(MKT_PROJECT_VERSION_TIMESTAMP).$(shell git rev-parse --short HEAD) MKT_PROJECT_SHORT_VERSION ?= $(MKT_PROJECT_VERSION_DATE)-$(MKT_PROJECT_SHORT_VERSION_CHANNEL).$(MKT_PROJECT_VERSION_TIMESTAMP)