|
|
@ -14,11 +14,11 @@ function clean_up { |
|
|
|
done |
|
|
|
done |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
WORKINGDIR="/tmp/bitcoin" |
|
|
|
WORKINGDIR="/tmp/bitcoin_verify_binaries" |
|
|
|
TMPFILE="hashes.tmp" |
|
|
|
TMPFILE="hashes.tmp" |
|
|
|
|
|
|
|
|
|
|
|
SIGNATUREFILENAME="SHA256SUMS.asc" |
|
|
|
SIGNATUREFILENAME="SHA256SUMS.asc" |
|
|
|
RCSUBDIR="test/" |
|
|
|
RCSUBDIR="test" |
|
|
|
BASEDIR="https://bitcoin.org/bin/" |
|
|
|
BASEDIR="https://bitcoin.org/bin/" |
|
|
|
VERSIONPREFIX="bitcoin-core-" |
|
|
|
VERSIONPREFIX="bitcoin-core-" |
|
|
|
RCVERSIONSTRING="rc" |
|
|
|
RCVERSIONSTRING="rc" |
|
|
@ -43,7 +43,7 @@ if [ -n "$1" ]; then |
|
|
|
# and simultaneously add RCSUBDIR to BASEDIR, where we will look for SIGNATUREFILENAME |
|
|
|
# and simultaneously add RCSUBDIR to BASEDIR, where we will look for SIGNATUREFILENAME |
|
|
|
if [[ $VERSION == *"$RCVERSIONSTRING"* ]]; then |
|
|
|
if [[ $VERSION == *"$RCVERSIONSTRING"* ]]; then |
|
|
|
BASEDIR="$BASEDIR${VERSION/%-$RCVERSIONSTRING*}/" |
|
|
|
BASEDIR="$BASEDIR${VERSION/%-$RCVERSIONSTRING*}/" |
|
|
|
BASEDIR="$BASEDIR$RCSUBDIR" |
|
|
|
BASEDIR="$BASEDIR$RCSUBDIR.$RCVERSIONSTRING${VERSION: -1}/" |
|
|
|
else |
|
|
|
else |
|
|
|
BASEDIR="$BASEDIR$VERSION/" |
|
|
|
BASEDIR="$BASEDIR$VERSION/" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -93,7 +93,7 @@ fi |
|
|
|
FILES=$(awk '{print $2}' "$TMPFILE") |
|
|
|
FILES=$(awk '{print $2}' "$TMPFILE") |
|
|
|
|
|
|
|
|
|
|
|
#and download these one by one |
|
|
|
#and download these one by one |
|
|
|
for file in in $FILES |
|
|
|
for file in $FILES |
|
|
|
do |
|
|
|
do |
|
|
|
wget --quiet -N "$BASEDIR$file" |
|
|
|
wget --quiet -N "$BASEDIR$file" |
|
|
|
done |
|
|
|
done |
|
|
|