support version_suffix

This commit is contained in:
c9s 2021-12-08 23:40:58 +08:00
parent 0290e6d07b
commit 6482b13edc

View File

@ -7,6 +7,10 @@ if [[ -z $VERSION ]] ; then
VERSION=$(git describe --tags)
fi
if [[ -n $VERSION_SUFFIX ]] ; then
VERSION=${VERSION}${VERSION_SUFFIX}
fi
cat <<END
// +build release