You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
if [ -z "$1" ]; then
echo "Usage: $0 VERSION" 2>&1
exit 1
fi
VERSION="$1"
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
git archive --format=tar.gz --prefix=vespa-ann-benchmark-$VERSION/ -o ~/rpmbuild/SOURCES/vespa-ann-benchmark-$VERSION.tar.gz HEAD
DIST_FILE="dist/vespa-ann-benchmark.spec"
# When checking out relase tags, the vespa-ann-benchmark.spec is in the source root folder. This is a workaround to be able to build rpms from a release tag.
if [ ! -e "$DIST_FILE" ]; then
DIST_FILE="vespa-ann-benchmark.spec"
fi
sed -e "s,_VESPA_VERSION_,$VERSION," < "$DIST_FILE" > ~/rpmbuild/SPECS/vespa-ann-benchmark-$VERSION.spec