mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 13:37:04 +00:00
yum command think "development-xxxx.xxxx" is older than "0.x", so nightly package mistakenly update with release version. To prevent this problem, we should add greater number prior to "development". Also same on Ubuntu package. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1452592877-29721-1-git-send-email-syuu@scylladb.com>
20 lines
467 B
Bash
Executable File
20 lines
467 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=666.development
|
|
|
|
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
|