depolymerization

wire gateway for Bitcoin/Ethereum
Log | Files | Refs | Submodules | README | LICENSE

commit cc87a6e03326de8576e2b0eff3aed5dc1f0ca3b4
parent af731945c8480a28102c66cf84cf2fb2b8a4f444
Author: Antoine A <>
Date:   Wed, 29 Dec 2021 00:04:08 +0100

Add test prepare script

Diffstat:
Ascript/prepare.sh | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/script/prepare.sh b/script/prepare.sh @@ -0,0 +1,32 @@ +set -eu + +DIR=$(mktemp -d) + +function cleanup() { + for n in `jobs -p`; do + kill $n 2> /dev/null || true + done + rm -rf $DIR 2> /dev/null + wait +} + +trap cleanup EXIT + +echo "I - Install bitcoind version 0.22" +cd $DIR +curl -L https://bitcoin.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz -o btc.tar.gz +tar xvzf btc.tar.gz -C ~/bitcoin + +echo "II - Install latest postgres from source" +cd $DIR +git clone --depth 1 https://git.postgresql.org/git/postgresql.git +postgresql +./configure --prefix ~/postgresql +make +make check +make install + +echo "III - Config" + +echo "Add ~/bitcoin/bin to your path" +echo "Add ~/postgresql/bin to your path" +\ No newline at end of file