Skip to content
Snippets Groups Projects
Commit 512ca90f authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Hardwire some version numbers, so we are not always on the bleeding edge.

parent 25f76c53
No related branches found
No related tags found
No related merge requests found
...@@ -124,12 +124,15 @@ function gethinstall ...@@ -124,12 +124,15 @@ function gethinstall
if [ -d ${NEW}/go-ethereum ] if [ -d ${NEW}/go-ethereum ]
then then
info "Running git pull to ensure that the local go-ethereum repo is up-to-date." info "Running git pull to ensure that the local go-ethereum repo is up-to-date."
runasownerof ${NEW}/go-ethereum git checkout master
runasownerof ${NEW}/go-ethereum git pull runasownerof ${NEW}/go-ethereum git pull
else else
info "Download geth source code." info "Download geth source code."
runasownerof ${NEW} git clone https://github.com/ethereum/go-ethereum runasownerof ${NEW} git clone https://github.com/ethereum/go-ethereum
fi fi
info "Compiling geth" runasownerof ${NEW}/go-ethereum git checkout ${geth_tag}
chown -R bfa ${NEW}/go-ethereum
info "Compiling geth tagged as ${geth_tag}"
runasownerof ${NEW}/go-ethereum make all runasownerof ${NEW}/go-ethereum make all
HISBINDIR=$( echo ~bfa/bin ) HISBINDIR=$( echo ~bfa/bin )
install --verbose --owner=bfa --group=bfa --directory ${HISBINDIR} install --verbose --owner=bfa --group=bfa --directory ${HISBINDIR}
...@@ -197,6 +200,7 @@ function userconfig ...@@ -197,6 +200,7 @@ function userconfig
cp -p ${BFAHOME}/$envfile ${BFAHOME}/bin/env cp -p ${BFAHOME}/$envfile ${BFAHOME}/bin/env
fi fi
PATH=${PATH}:${BFAHOME}/bin PATH=${PATH}:${BFAHOME}/bin
source ${BFAHOME}/lib/versions
} }
function cronit function cronit
......
...@@ -3,21 +3,25 @@ ...@@ -3,21 +3,25 @@
trap "exit 1" ERR trap "exit 1" ERR
set -x set -x
source ${BFAHOME}/lib/versions
test -d ~/new || mkdir ~/new test -d ~/new || mkdir ~/new
cd ~/new cd ~/new
if [ -d "solidity" ] if [ -d "solidity" ]
then then
cd solidity cd solidity
git checkout develop
git pull git pull
else else
git clone --recursive https://github.com/ethereum/solidity.git git clone --recursive https://github.com/ethereum/solidity.git
cd solidity cd solidity
fi fi
git checkout ${solidity_tag}
scripts/install_deps.sh scripts/install_deps.sh
mkdir -p build mkdir -p build
cd build cd build
cmake .. cmake .. -DUSE_Z3=OFF
make solc make solc
install --owner=bfa --target-directory=$( echo ~bfa )/bin solc/solc install --owner=bfa --target-directory=$( echo ~bfa )/bin solc/solc
geth_tag=v1.8.27
solidity_tag=v0.5.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment