b177d24d46
This adds version proper version numbering for the scylla-jmx RPM. Please note that the version number in the server is still hard-coded in the Maven POM file as "1.0". We need to address that later. Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
20 lines
455 B
Bash
Executable File
20 lines
455 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=0.8
|
|
|
|
if test -f version
|
|
then
|
|
SCYLLA_VERSION=$(cat version | awk -F'-' '{print $1}')
|
|
SCYLLA_RELEASE=$(cat version | awk -F'-' '{print $2}')
|
|
else
|
|
DATE=$(date +%Y%m%d)
|
|
GIT_COMMIT=$(git log --pretty=format:'%h' -n 1)
|
|
SCYLLA_VERSION=$VERSION
|
|
SCYLLA_RELEASE=$DATE.$GIT_COMMIT
|
|
fi
|
|
|
|
echo "$SCYLLA_VERSION-$SCYLLA_RELEASE"
|
|
mkdir -p build
|
|
echo "$SCYLLA_VERSION" > build/SCYLLA-VERSION-FILE
|
|
echo "$SCYLLA_RELEASE" > build/SCYLLA-RELEASE-FILE
|