nosqlbench/scripts/tag-release-build

16 lines
335 B
Plaintext
Raw Normal View History

2023-01-23 21:18:53 -06:00
#!/bin/bash
cd mvn-defaults
2023-01-29 01:53:10 -06:00
#set -x
2023-01-23 21:18:53 -06:00
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT}
RELEASE_TAG="${RELEASE_VERSION}-release"
printf "release tag: '%s'\n" "${RELEASE_TAG}"
2023-01-26 00:53:32 -06:00
if [ "$1" == "-f" ]
then
git tag -f "${RELEASE_TAG}"
else
git tag "${RELEASE_TAG}"
fi
2023-01-23 21:18:53 -06:00