summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@oath.com>2018-08-28 10:38:45 +0200
committerArnstein Ressem <aressem@oath.com>2018-08-28 10:38:45 +0200
commit7a10cb6bb7c8ac100226adfc0448f522387da27a (patch)
tree54b67591fb4c8aaf05123ca92fdeae31ed6ffa02 /dist
parent627e9f07b4ddbf25eb69946fed3131af15cc3996 (diff)
Set version number when building Vespa RPM. Bump minor number in VERSION file upon release.
Diffstat (limited to 'dist')
-rwxr-xr-xdist/release-vespa-rpm.sh5
-rw-r--r--dist/vespa.spec3
2 files changed, 7 insertions, 1 deletions
diff --git a/dist/release-vespa-rpm.sh b/dist/release-vespa-rpm.sh
index c21550215f0..d2384c21b4e 100755
--- a/dist/release-vespa-rpm.sh
+++ b/dist/release-vespa-rpm.sh
@@ -19,6 +19,11 @@ readonly CURRENT_BRANCH=$(git branch | grep "^\*" | cut -d' ' -f2)
git checkout master
git pull --rebase
+# Update the VERSION file on master to be the next releasable version
+echo "$VERSION" | awk -F. '{print $1"."($2+1)".0"}' > VERSION
+git commit -am "Updating VERSION file to next releasable minor version."
+git push
+
# Delete existing branch if exists and create new one
git push --delete origin $RPM_BRANCH &> /dev/null || true
git branch -D $RPM_BRANCH &> /dev/null || true
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 1a0a51b88fc..25ee24167f8 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -7,7 +7,7 @@
%define _prefix /opt/vespa
Name: vespa
-Version: VESPA_VERSION
+Version: _VESPA_VERSION_
Release: 1%{?dist}
Summary: Vespa - The open big data serving engine
Group: Applications/Databases
@@ -145,6 +145,7 @@ source %{_devtoolset_enable} || true
%if 0%{?_rhmaven35_enable:1}
source %{_rhmaven35_enable} || true
%endif
+export FACTORY_VESPA_VERSION=%{version}
sh bootstrap.sh java
mvn --batch-mode -nsu -T 1 install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
cmake3 -DCMAKE_INSTALL_PREFIX=%{_prefix} \