@@ -17,15 +17,15 @@ function clean_up {
1717WORKINGDIR=" /tmp/bitcoin"
1818TMPFILE=" hashes.tmp"
1919
20- # this URL is used if a version number is not specified as an argument to the script
21- SIGNATUREFILE=" https://bitcoin.org/bin/0.9.2.1/SHA256SUMS.asc"
22-
2320SIGNATUREFILENAME=" SHA256SUMS.asc"
2421RCSUBDIR=" test/"
2522BASEDIR=" https://bitcoin.org/bin/"
26- VERSIONPREFIX=" bitcoin-"
23+ VERSIONPREFIX=" bitcoin-core- "
2724RCVERSIONSTRING=" rc"
2825
26+ # this URL is used if a version number is not specified as an argument to the script
27+ SIGNATUREFILE=" $BASEDIR " " $VERSIONPREFIX " " 0.10.4/" " $RCSUBDIR " " $SIGNATUREFILENAME "
28+
2929if [ ! -d " $WORKINGDIR " ]; then
3030 mkdir " $WORKINGDIR "
3131fi
@@ -62,7 +62,7 @@ WGETOUT=$(wget -N "$BASEDIR$SIGNATUREFILENAME" 2>&1)
6262# and then see if wget completed successfully
6363if [ $? -ne 0 ]; then
6464 echo " Error: couldn't fetch signature file. Have you specified the version number in the following format?"
65- echo " [bitcoin- ]<version>-[rc [0-9]] (example: bitcoin-0.9.2-rc1 )"
65+ echo " [$VERSIONPREFIX ]<version>-[$RCVERSIONSTRING [0-9]] (example: " $VERSIONPREFIX " 0.10.4- " $RCVERSIONSTRING " 1 )"
6666 echo " wget output:"
6767 echo " $WGETOUT " | sed ' s/^/\t/g'
6868 exit 2
@@ -82,7 +82,7 @@ if [ $RET -ne 0 ]; then
8282 echo " Bad signature."
8383 elif [ $RET -eq 2 ]; then
8484 # or if a gpg error has occurred
85- echo " gpg error. Do you have Gavin's code signing key installed?"
85+ echo " gpg error. Do you have the Bitcoin Core binary release signing key installed?"
8686 fi
8787
8888 echo " gpg output:"
116116# everything matches! clean up the mess
117117clean_up $FILES $SIGNATUREFILENAME $TMPFILE
118118
119+ echo -e " Verified hashes of \n$FILES "
120+
119121exit 0
0 commit comments