2015-09-17 09:16:12 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-04-22 12:53:04 +02:00
|
|
|
PRODUCT=scylla
|
2020-10-26 17:13:03 +01:00
|
|
|
VERSION=4.0.11
|
2015-09-17 09:16:12 +02:00
|
|
|
|
|
|
|
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
|
2019-04-22 12:53:04 +02:00
|
|
|
echo "$PRODUCT" > build/SCYLLA-PRODUCT-FILE
|