emqx/pkg-vsn.sh
Zaiming Shi 1236c1934c chore(build): refine packages builds
This commit merge packages.mk into Makefile
with the complex part moved to shell script ./build.
2020-12-16 09:22:47 +01:00

13 lines
247 B
Bash
Executable File

#!/bin/bash
# This script prints the release version for emqx
# ensure dir
cd -P -- "$(dirname -- "$0")"
# comment SUFFIX out when finalising RELEASE
RELEASE="4.3.0"
SUFFIX="-pre-$(git rev-parse HEAD | cut -b1-8)"
echo "${RELEASE}${SUFFIX:-}"