Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D78E6181DE for ; Thu, 11 Jun 2015 00:57:34 +0000 (UTC) Received: (qmail 64600 invoked by uid 500); 11 Jun 2015 00:57:34 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 64534 invoked by uid 500); 11 Jun 2015 00:57:34 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 64306 invoked by uid 99); 11 Jun 2015 00:57:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2015 00:57:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7ABBBE04E4; Thu, 11 Jun 2015 00:57:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ctubbsii@apache.org To: commits@accumulo.apache.org Date: Thu, 11 Jun 2015 00:57:39 -0000 Message-Id: In-Reply-To: <444e58ce947b4db6a5d43c7cd3944c20@git.apache.org> References: <444e58ce947b4db6a5d43c7cd3944c20@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [06/10] accumulo git commit: Merge branch '1.5' into 1.6 Merge branch '1.5' into 1.6 Conflicts: assemble/build.sh Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/c6d1ce59 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/c6d1ce59 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/c6d1ce59 Branch: refs/heads/1.6 Commit: c6d1ce5982fe1214bee1b2a7f9c2e8d2e9f28cfe Parents: 7c070bf 8782a01 Author: Christopher Tubbs Authored: Wed Jun 10 20:51:37 2015 -0400 Committer: Christopher Tubbs Committed: Wed Jun 10 20:51:37 2015 -0400 ---------------------------------------------------------------------- assemble/build.sh | 85 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/c6d1ce59/assemble/build.sh ---------------------------------------------------------------------- diff --cc assemble/build.sh index 5f65419,f2c9474..320390f --- a/assemble/build.sh +++ b/assemble/build.sh @@@ -45,21 -45,120 +45,104 @@@ cacheGPG() touch "${TESTFILE}" && gpg --sign "${TESTFILE}" && rm -f "${TESTFILE}" "${TESTFILE}.gpg" } -setupRPM() { - # if you want the RPM signed, copy contrib/dotfile-rpmmacros to $HOME/.rpmmacros - diff -q "contrib/dotfile-rpmmacros" "$HOME/.rpmmacros" - R=$? - if [[ $R = 0 ]]; then - true - elif [[ $R = 1 ]]; then - run mv -n "$HOME/.rpmmacros" "$HOME/.rpmmacros-bak-$(date -u +%s)" - run cp "contrib/dotfile-rpmmacros" "$HOME/.rpmmacros" - elif [[ ! -r "$HOME/.rpmmacros" ]]; then - run cp "contrib/dotfile-rpmmacros" "$HOME/.rpmmacros" - else - fail diff returned $R - fi -} - + createEmail() { + read -p 'Enter the staging repository number: ' stagingrepo + read -p 'Enter the version to be released (eg. x.y.z): ' tag + read -p 'Enter the release candidate number (eg. 1, 2, etc.): ' rc + + commit=$(git show $tag -n1 --pretty=raw --no-color | head -1 | awk '{print $2}') + branch=$tag-rc$rc + echo + echo "IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!!" + echo + echo " Don't forget to push a branch named $branch with" + echo " its head at ${commit:0:7} so people can review!" + echo + echo " However, do *NOT* push the $tag tag until after the vote" + echo " passes and the tag is re-made with a gpg signature using" + echo " \`git tag -f -m 'Apache Accumulo $tag' -s $tag ${commit:0:7}\`" + echo + echo "IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!!" + echo + read -p 'Press Enter to generate the [VOTE] email...' rc + + # compute the date with a buffer of 30 minutes + votedate=$(date -d "+3 days 30 minutes" "+%s") + # round back to the previous half-hour + halfhour=$(($votedate - ($votedate % 1800))) + votedate=$(date -u -d"1970-01-01 $halfhour seconds UTC") + export TZ="America/New_York" + edtvotedate=$(date -d"1970-01-01 $halfhour seconds UTC") + export TZ="America/Los_Angeles" + pdtvotedate=$(date -d"1970-01-01 $halfhour seconds UTC") + + cat <