mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-24 09:40:30 -06:00
16 lines
335 B
Bash
Executable File
16 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
cd mvn-defaults
|
|
#set -x
|
|
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}"
|
|
|
|
if [ "$1" == "-f" ]
|
|
then
|
|
git tag -f "${RELEASE_TAG}"
|
|
else
|
|
git tag "${RELEASE_TAG}"
|
|
fi
|
|
|