You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/07/15 18:06:44 UTC
[2/5] incubator-usergrid git commit: Debugging release script
Debugging release script
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/a8b5354c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/a8b5354c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/a8b5354c
Branch: refs/heads/1.0.2
Commit: a8b5354c9798a32925509aef530cd6701356c4ec
Parents: 7039f06
Author: Dave Johnson <sn...@gmail.com>
Authored: Wed Jul 15 11:29:57 2015 -0400
Committer: Dave Johnson <sn...@gmail.com>
Committed: Wed Jul 15 11:29:57 2015 -0400
----------------------------------------------------------------------
release/release.sh | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/a8b5354c/release/release.sh
----------------------------------------------------------------------
diff --git a/release/release.sh b/release/release.sh
index 411fb80..eb1a808 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -132,31 +132,35 @@ git commit -m "Updating .usergridversion to ${current_version}."
git tag -s "${current_version}" -m "usergrid-${current_version} release." $current_version
+echo "Push origin"
+
#if [[ $publish == 1 ]]; then
#git push origin $current_version
#git push origin --tags
#fi
-dist_name="apache-usergrid-${current_version}-incubating"
+echo "Creating release dir"
+dist_name="apache-usergrid-${current_version}-incubating"
dist_dir=${base_dir}/dist
release_dir=${dist_dir}/${current_version}
mkdir -p $release_dir
cd $dist_dir
-#if [[ $publish == 1 ]]; then
-# echo "Publishing the release"
+if [[ $publish == 1 ]]; then
+ echo "Publishing the release"
# Make and checkout the release dist directory
# svn mkdir ${usergrid_svn_dist_url}/${current_version} -m "usergrid-${current_version} release"
# svn co --depth=empty ${usergrid_svn_dist_url}/${current_version} ${release_dir}
-#fi
+fi
-# Now that the .usergridversion has been updated to the release version build the release source dist from it
+# Now that the .usergridversion has been updated to the release
+# version build the release source dist from it
cd $base_dir
git archive --prefix=${dist_name}/ -o ${release_dir}/${dist_name}.tar.gz HEAD
-cd ${release_dir}
# Sign the tarball.
+cd ${release_dir}
echo "Signing the distribution"
gpg --armor --output ${release_dir}/${dist_name}.tar.gz.asc --detach-sig ${release_dir}/${dist_name}.tar.gz