-
Notifications
You must be signed in to change notification settings - Fork 66
/
getrelease.sh
executable file
·31 lines (25 loc) · 1.28 KB
/
getrelease.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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