diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/install_eth_dep.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/install_eth_dep.sh b/bin/install_eth_dep.sh new file mode 100755 index 0000000..79ecd0e --- /dev/null +++ b/bin/install_eth_dep.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [ -e .dep/libsecp256k1 ]; then + exit 0 +fi + +rm -rf vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1 +if [ ! -d .dep/libsecp256k1 ]; then + git init .dep/libsecp256k1 + cd .dep/libsecp256k1 + git remote add origin https://github.com/ethereum/go-ethereum.git + git config core.sparsecheckout true + echo "crypto/secp256k1/libsecp256k1/*" >> .git/info/sparse-checkout + cd ../../ +fi +cd .dep/libsecp256k1 +git pull --depth=1 origin master +cd ../../ +cp -r .dep/libsecp256k1/crypto/secp256k1/libsecp256k1 \ + vendor/github.com/ethereum/go-ethereum/crypto/secp256k1 |