Repository: johnzon Updated Branches: refs/heads/master a9942773a -> 70fe9ff01
add a small script to collect the release artifacts Project: http://git-wip-us.apache.org/repos/asf/johnzon/repo Commit: http://git-wip-us.apache.org/repos/asf/johnzon/commit/70fe9ff0 Tree: http://git-wip-us.apache.org/repos/asf/johnzon/tree/70fe9ff0 Diff: http://git-wip-us.apache.org/repos/asf/johnzon/diff/70fe9ff0 Branch: refs/heads/master Commit: 70fe9ff01e67552582bc05177a157760b9fd22a9 Parents: a994277 Author: Mark Struberg <[email protected]> Authored: Tue Dec 20 20:28:30 2016 +0100 Committer: Mark Struberg <[email protected]> Committed: Tue Dec 20 20:28:30 2016 +0100 ---------------------------------------------------------------------- getrelease.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/johnzon/blob/70fe9ff0/getrelease.sh ---------------------------------------------------------------------- diff --git a/getrelease.sh b/getrelease.sh new file mode 100755 index 0000000..24481ad --- /dev/null +++ b/getrelease.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# +# small script to download the release binaries to store in the dist area +# +# Usage (for default release repo): +# first param is the release verion, second param is optional and a download repository. +# $> ./getrelease.sh 1.1.0 +# or during a VOTE e.g. : +# $> ./getrelease.sh 1.1.0 https://repository.apache.org/content/repositories/orgapachejohnzon-1016/ + + +mkdir -p target/dist/johnzon-$1 +cd target/dist/johnzon-$1 + +if [[ -z $2 ]]; then + repo_path=https://repository.apache.org/content/groups/public +else + repo_path=$2 +fi + +echo "Fetching artifacts from " ${repo_path} +curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip +curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip.asc +curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip.md5 +curl -O ${repo_path}/org/apache/johnzon/johnzon/${1}/johnzon-${1}-source-release.zip.sha1 + +curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip +curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip.asc +curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip.md5 +curl -O ${repo_path}/org/apache/johnzon/apache-johnzon/${1}/apache-johnzon-${1}-bin.zip.sha1
