You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ms...@apache.org on 2017/03/06 20:56:35 UTC

cassandra-builds git commit: Use cut to build release series instead of counting characters

Repository: cassandra-builds
Updated Branches:
  refs/heads/master 9e62fe8a6 -> a1f0d3309


Use cut to build release series instead of counting characters


Project: http://git-wip-us.apache.org/repos/asf/cassandra-builds/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-builds/commit/a1f0d330
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-builds/tree/a1f0d330
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-builds/diff/a1f0d330

Branch: refs/heads/master
Commit: a1f0d330904d559aae07dd0a0ff67f65fe00c818
Parents: 9e62fe8
Author: Michael Shuler <mi...@pbandjelly.org>
Authored: Mon Mar 6 14:56:30 2017 -0600
Committer: Michael Shuler <mi...@pbandjelly.org>
Committed: Mon Mar 6 14:56:30 2017 -0600

----------------------------------------------------------------------
 cassandra-release/finish_release.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/a1f0d330/cassandra-release/finish_release.sh
----------------------------------------------------------------------
diff --git a/cassandra-release/finish_release.sh b/cassandra-release/finish_release.sh
index 99655c1..bcc9898 100755
--- a/cassandra-release/finish_release.sh
+++ b/cassandra-release/finish_release.sh
@@ -134,6 +134,8 @@ then
 else
     release_short=${release:0:$((idx-1))}
 fi
+release_major=$(echo ${release_short} | cut -d '.' -f 1)
+release_minor=$(echo ${release_short} | cut -d '.' -f 2)
 
 echo "Deploying artifacts ..." 1>&3 2>&4
 start_dir=$PWD
@@ -164,7 +166,7 @@ echo "Deploying debian packages ..." 1>&3 2>&4
 
 current_dir=`pwd`
 
-debian_series="${release_short:0:1}${release_short:2:2}x"
+debian_series="${release_major}${release_minor}x"
 
 execute "cd $reprepro_dir"
 execute "reprepro --ignore=wrongdistribution include $debian_series $debian_package_dir/cassandra_${release}_debian/cassandra_${deb_release}_*.changes"
@@ -192,7 +194,7 @@ echo "Downloads of source and binary distributions are listed in our download se
 echo "" >> $mail_file
 echo " http://cassandra.apache.org/download/" >> $mail_file
 echo "" >> $mail_file
-series="${release_short:0:1}.${release_short:2:1}"
+series="${release_major}.${release_minor}"
 echo "This version is a bug fix release[1] on the $series series. As always, please pay attention to the release notes[2] and Let us know[3] if you were to encounter any problem." >> $mail_file
 echo "" >> $mail_file
 echo "Enjoy!" >> $mail_file