mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-23 09:16:37 -06:00
16 lines
334 B
Bash
Executable File
16 lines
334 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}
|
|
PREVIEW_TAG="${RELEASE_VERSION}-preview"
|
|
printf "preview tag: '%s'\n" "${PREVIEW_TAG}"
|
|
|
|
if [ "$1" == "-f" ]
|
|
then
|
|
git tag -f "${PREVIEW_TAG}"
|
|
else
|
|
git tag "${PREVIEW_TAG}"
|
|
fi
|
|
|