diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-08-21 21:29:18 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-08-21 21:21:38 +0200 |
commit | fab1f9272c4999cd505f1e56eb348b5eb4bb38cb (patch) | |
tree | c5883a6546d3ff367eac7648d66c1887e274300f /contrib/verifybinaries | |
parent | 2468292a03539c5b46220db15078f81915006915 (diff) |
[contrib] verifybinaries: Adjust parsing to new rc path
Diffstat (limited to 'contrib/verifybinaries')
-rw-r--r-- | contrib/verifybinaries/README.md | 1 | ||||
-rwxr-xr-x | contrib/verifybinaries/verify.sh | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/contrib/verifybinaries/README.md b/contrib/verifybinaries/README.md index 8970f3daa4..d43a60ca0f 100644 --- a/contrib/verifybinaries/README.md +++ b/contrib/verifybinaries/README.md @@ -10,4 +10,5 @@ Usage: ```sh ./verify.sh bitcoin-core-0.11.2 ./verify.sh bitcoin-core-0.12.0 +./verify.sh bitcoin-core-0.13.0-rc3 ``` diff --git a/contrib/verifybinaries/verify.sh b/contrib/verifybinaries/verify.sh index 657c3bd33c..40759c36bc 100755 --- a/contrib/verifybinaries/verify.sh +++ b/contrib/verifybinaries/verify.sh @@ -14,11 +14,11 @@ function clean_up { done } -WORKINGDIR="/tmp/bitcoin" +WORKINGDIR="/tmp/bitcoin_verify_binaries" TMPFILE="hashes.tmp" SIGNATUREFILENAME="SHA256SUMS.asc" -RCSUBDIR="test/" +RCSUBDIR="test" BASEDIR="https://bitcoin.org/bin/" VERSIONPREFIX="bitcoin-core-" RCVERSIONSTRING="rc" @@ -43,7 +43,7 @@ if [ -n "$1" ]; then # and simultaneously add RCSUBDIR to BASEDIR, where we will look for SIGNATUREFILENAME if [[ $VERSION == *"$RCVERSIONSTRING"* ]]; then BASEDIR="$BASEDIR${VERSION/%-$RCVERSIONSTRING*}/" - BASEDIR="$BASEDIR$RCSUBDIR" + BASEDIR="$BASEDIR$RCSUBDIR.$RCVERSIONSTRING${VERSION: -1}/" else BASEDIR="$BASEDIR$VERSION/" fi @@ -93,7 +93,7 @@ fi FILES=$(awk '{print $2}' "$TMPFILE") #and download these one by one -for file in in $FILES +for file in $FILES do wget --quiet -N "$BASEDIR$file" done |