You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2017/09/25 15:58:40 UTC
[1/2] activemq-artemis git commit: NO-JIRA: remove script,
moved into dist dev repo to simplify use,
now under https://dist.apache.org/repos/dist/dev/activemq/activemq-artemis
Repository: activemq-artemis
Updated Branches:
refs/heads/master 0434efb6f -> 266ead74f
NO-JIRA: remove script, moved into dist dev repo to simplify use, now under https://dist.apache.org/repos/dist/dev/activemq/activemq-artemis
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/266ead74
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/266ead74
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/266ead74
Branch: refs/heads/master
Commit: 266ead74f6326bc6af4cae45ad62d895796ae28a
Parents: a0bd553
Author: Robbie Gemmell <ro...@apache.org>
Authored: Mon Sep 25 16:57:55 2017 +0100
Committer: Robbie Gemmell <ro...@apache.org>
Committed: Mon Sep 25 16:58:24 2017 +0100
----------------------------------------------------------------------
scripts/download-release.sh | 94 ----------------------------------------
1 file changed, 94 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/266ead74/scripts/download-release.sh
----------------------------------------------------------------------
diff --git a/scripts/download-release.sh b/scripts/download-release.sh
deleted file mode 100755
index 5025c88..0000000
--- a/scripts/download-release.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Setting the script to fail if anything goes wrong
-set -e
-
-#This is a script to help with the release process
-
-
-error () {
- echo ""
- echo "$@"
- echo ""
- echo "Usage: ./download-release.sh repo-url version [target-dir (defaults to version, must not exist)]"
- echo ""
- echo "example:"
- echo "./download-release.sh https://repo1.maven.org/maven2 2.3.0"
- echo ""
- exit 64
-}
-
-doDownload () {
-
- theFile="$1"
- completeURL="$repoURL/$theFile"
-
- echo $theFile
-
- echo "Downloading $completeURL"
- curl $completeURL > $theFile
-
- echo "Downloading $theFile.asc"
- curl $completeURL.asc > $theFile.asc
-
- echo "Downloading $theFile.md5"
- curl $completeURL.md5 > $theFile.md5
-
- echo "Verifying signature $theFile.asc"
- gpg --verify $theFile.asc
-
- echo "Augmenting $theFile.md5 with filename details"
- echo " $theFile" >> $theFile.md5
-
- echo "Generating SHA512 checksum file $theFile.sha512"
- sha512sum $theFile > $theFile.sha512
-}
-
-if [ "$#" -lt 2 ]; then
- error "Cannot match arguments"
-fi
-
-release=$2
-target=${3-$2}
-echo "Target Directory: $target"
-
-if [ -d $target ]; then
- error "Directory $target already exists, stopping"
-else
- echo "Directory $target does not exist, creating"
- mkdir $target
- cd $target
-fi
-
-repoURL="$1/org/apache/activemq/apache-artemis/$2"
-
-doDownload apache-artemis-$release-bin.tar.gz
-doDownload apache-artemis-$release-bin.zip
-doDownload apache-artemis-$release-source-release.tar.gz
-doDownload apache-artemis-$release-source-release.zip
-
-echo ""
-echo "--- Download Complete for Release $2 Artifacts are in $target---"
-echo ""
-echo "Validating all MD5 checksum files"
-md5sum -c *.md5
-
-echo "Validating all SHA512 checksum files"
-sha512sum -c *.sha512
-
[2/2] activemq-artemis git commit: NO-JIRA: more tweaks for the
release helper script
Posted by ro...@apache.org.
NO-JIRA: more tweaks for the release helper script
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/a0bd5536
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/a0bd5536
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/a0bd5536
Branch: refs/heads/master
Commit: a0bd5536773a840191c5b125c2f79817445f19e5
Parents: 0434efb
Author: Robbie Gemmell <ro...@apache.org>
Authored: Mon Sep 25 16:54:40 2017 +0100
Committer: Robbie Gemmell <ro...@apache.org>
Committed: Mon Sep 25 16:58:24 2017 +0100
----------------------------------------------------------------------
scripts/download-release.sh | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/a0bd5536/scripts/download-release.sh
----------------------------------------------------------------------
diff --git a/scripts/download-release.sh b/scripts/download-release.sh
index 42f02f4..5025c88 100755
--- a/scripts/download-release.sh
+++ b/scripts/download-release.sh
@@ -26,10 +26,10 @@ error () {
echo ""
echo "$@"
echo ""
- echo "Usage: ./download-release.sh repo-url version target"
+ echo "Usage: ./download-release.sh repo-url version [target-dir (defaults to version, must not exist)]"
echo ""
echo "example:"
- echo "./download-release.sh https://repo1.maven.org/maven2 2.3.0 ./target"
+ echo "./download-release.sh https://repo1.maven.org/maven2 2.3.0"
echo ""
exit 64
}
@@ -41,7 +41,7 @@ doDownload () {
echo $theFile
- echo "Downloading $theFile from $completeURL"
+ echo "Downloading $completeURL"
curl $completeURL > $theFile
echo "Downloading $theFile.asc"
@@ -60,25 +60,32 @@ doDownload () {
sha512sum $theFile > $theFile.sha512
}
-if [ "$#" != 3 ]; then
+if [ "$#" -lt 2 ]; then
error "Cannot match arguments"
fi
release=$2
+target=${3-$2}
+echo "Target Directory: $target"
-if [ -d $3 ]; then
- cd $3
+if [ -d $target ]; then
+ error "Directory $target already exists, stopping"
else
- error "Directory $3 does not exist"
+ echo "Directory $target does not exist, creating"
+ mkdir $target
+ cd $target
fi
repoURL="$1/org/apache/activemq/apache-artemis/$2"
-doDownload apache-artemis-$release-bin.tar.gz
+doDownload apache-artemis-$release-bin.tar.gz
doDownload apache-artemis-$release-bin.zip
doDownload apache-artemis-$release-source-release.tar.gz
doDownload apache-artemis-$release-source-release.zip
+echo ""
+echo "--- Download Complete for Release $2 Artifacts are in $target---"
+echo ""
echo "Validating all MD5 checksum files"
md5sum -c *.md5