aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-03-07 19:22:00 +0100
committerSjors Provoost <sjors@sprovoost.nl>2020-02-11 21:46:22 +0100
commitc7ca6308968b29a0e0edc485cd06e68e5edb7c7d (patch)
tree620c6a04e906038a87d5c133269c662aa3b05433 /contrib
parent8b1460dbd1b732f06d4cebe1fa6844286c7a0056 (diff)
[scripts] support release candidates of earlier releases
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/devtools/previous_release.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/devtools/previous_release.sh b/contrib/devtools/previous_release.sh
index ea096c0cec..efd035f778 100755
--- a/contrib/devtools/previous_release.sh
+++ b/contrib/devtools/previous_release.sh
@@ -132,7 +132,12 @@ pushd "$TARGET" || exit 1
echo "Using cached $tag"
else
mkdir "$tag"
- URL="https://bitcoin.org/bin/bitcoin-core-${tag:1}/bitcoin-${tag:1}-$PLATFORM.tar.gz"
+ if [[ "$tag" =~ v(.*)(rc[0-9]+)$ ]]; then
+ BIN_PATH="bin/bitcoin-core-${BASH_REMATCH[1]}/test.${BASH_REMATCH[2]}"
+ else
+ BIN_PATH="bin/bitcoin-core-${tag:1}"
+ fi
+ URL="https://bitcoin.org/$BIN_PATH/bitcoin-${tag:1}-$PLATFORM.tar.gz"
echo "Fetching: $URL"
curl -O $URL
tar -zxf "bitcoin-${tag:1}-$PLATFORM.tar.gz" -C "$tag" --strip-components=1 "bitcoin-${tag:1}"