You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2013/05/24 21:32:25 UTC

[6/6] git commit: Fixed release script to use git instead of svn.

Fixed release script to use git instead of svn.

Review: https://reviews.apache.org/r/11381


Project: http://git-wip-us.apache.org/repos/asf/incubator-mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mesos/commit/c4d3ebcd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mesos/tree/c4d3ebcd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mesos/diff/c4d3ebcd

Branch: refs/heads/0.11.x
Commit: c4d3ebcdc6922259f36af3e1bb4fa01fbdba4d8a
Parents: d0356b1
Author: Vinod Kone <vi...@twitter.com>
Authored: Fri May 24 10:49:03 2013 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Fri May 24 11:00:48 2013 -0700

----------------------------------------------------------------------
 support/release.sh |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/c4d3ebcd/support/release.sh
----------------------------------------------------------------------
diff --git a/support/release.sh b/support/release.sh
index 0e1eec7..6ec568b 100755
--- a/support/release.sh
+++ b/support/release.sh
@@ -29,7 +29,7 @@ echo "${GREEN}Now let's sign the distribution ...${NORMAL}"
 gpg --armor --output ${TARBALL}.asc --detach-sig ${TARBALL} || \
   { echo "${RED}Failed to sign the distribution${NORMAL}"; exit 1; }
 
-echo "${GREEN}And let's create an MD5 ...${NORMAL}"
+echo "${GREEN}And let's create a MD5 checksum...${NORMAL}"
 
 # Create MD5 checksum.
 gpg --print-md MD5 ${TARBALL} > ${TARBALL}.md5 || \
@@ -56,12 +56,17 @@ echo "${GREEN}Now let's make the artifacts world readable ...${NORMAL}"
   { echo "${RED}Failed to change permissions of artifacts${NORMAL}";
     exit 1; }
 
-echo "${GREEN}Finally, we'll create an SVN tag/branch ...${NORMAL}"
+echo "${GREEN}Now we'll create a git tag ...${NORMAL}"
 
 MESSAGE="Tag for release-${VERSION}-incubating-RC${CANDIDATE}."
+TAG="release-${VERSION}-incubating-RC${CANDIDATE}"
+git tag -m ${MESSAGE} ${TAG} || \
+  { echo "${RED}Failed to create git tag${NORMAL}"; exit 1; }
 
-git svn branch --tag -m ${MESSAGE} \
-  release-${VERSION}-incubating-RC${CANDIDATE} || \
-  { echo "${RED}Failed to create SVN tag/branch${NORMAL}"; exit 1; }
+echo "${GREEN}Finally, we'll push the git tag to the repository...${NORMAL}"
+
+REPOSITORY="https://git-wip-us.apache.org/repos/asf/incubator-mesos.git"
+git push ${REPOSITORY} ${TAG} || \
+  { echo "${RED}Failed to push git tag to the repo${NORMAL}"; exit 1; }
 
 exit 0