59714f69d4
This patch modifies the RPC protocol tag to use Major and Minor parts of the version and not all of it. This means all peers on the 0.5.x can run in the same cluster. As cluster has become more mature and I see less risks in letting peers from similar versions run together. This is useful when upgrading too. License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
26 lines
709 B
Bash
Executable File
26 lines
709 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Updates the Version variables, commits, tags, signs and "gx release" the package
|
|
|
|
set -e
|
|
set -x
|
|
|
|
version="$1"
|
|
|
|
if [ -z $version ]; then
|
|
echo "Need a version!"
|
|
exit 1
|
|
fi
|
|
|
|
make gx-clean
|
|
sed -i "s/Version = semver\.MustParse.*$/Version = semver.MustParse(\"$version\")/" version.go
|
|
sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go
|
|
git commit -S -a -m "Release $version"
|
|
lastver=`git tag -l | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+$' | tail -n 1`
|
|
echo "Tag for Release ${version}" > tag_annotation
|
|
echo >> tag_annotation
|
|
git log --pretty=oneline ${lastver}..HEAD >> tag_annotation
|
|
git tag -a -s -F tag_annotation v$version
|
|
rm tag_annotation
|
|
gx release $version
|