good morning!!!!

Skip to content
Snippets Groups Projects
Select Git revision
  • f4c39c6046a85279a706c11239ea2d58c24a77da
  • master default protected
  • add-tests
  • extensions
  • gateway
  • codec-bundle
  • renovate/github.com-gfx-labs-sse-digest
  • renovate/golang.org-x-net-0.x
  • renovate/golang-1.x
  • jsonv2
  • garet
  • check
  • http-curse
  • whatthefuck
  • pool
  • envelope
  • mod
  • simplify
  • new-interface
  • v2
  • master-old
  • v0.8.0
  • v0.7.0
  • v0.6.1
  • v0.6.0
  • v0.5.4
  • v0.5.3
  • v0.5.2
  • v0.5.1
  • v0.5.0
  • v0.4.19
  • v0.4.18
  • v0.4.17
  • v0.4.16
  • v0.4.15
  • v0.4.14
  • v0.4.13
  • v0.4.12
  • v0.4.11
  • v0.4.10
  • v0.4.9
41 results

server.go

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    install.sh 1.13 KiB
    #!/bin/sh
    
    if [ "$1" == "" ]; then
    	echo "Usage $0 executable branch ethereum develop"
    	echo "executable    ethereum or ethereal"
    	echo "branch        develop or master"
    	exit
    fi
    
    exe=$1
    branch=$2
    
    # Test if go is installed
    command -v go >/dev/null 2>&1 || { echo >&2 "Unable to find 'go'. This script requires go."; exit 1; }
    
    # Test if $GOPATH is set
    if [ "$GOPATH" == "" ]; then
    	echo "\$GOPATH not set"
    	exit
    fi
    
    echo "go get -u -d github.com/ethereum/go-ethereum/$exe"
    go get -v -u -d github.com/ethereum/go-ethereum/$exe
    if [ $? != 0 ]; then
    	echo "go get failed"
    	exit
    fi
    
    echo "serpent-go"
    cd $GOPATH/src/github.com/obscuren/mutan
    
    echo "init submodule"
    git submodule init
    git submodule update
    
    echo "eth-go"
    cd $GOPATH/src/github.com/ethereum/eth-go
    git checkout $branch
    
    echo "go-ethereum"
    cd $GOPATH/src/github.com/ethereum/go-ethereum/$exe
    git checkout $branch
    
    if [ "$exe" == "ethereal" ]; then
    	echo "Building ethereal GUI. Assuming Qt is installed. If this step"
    	echo "fails; please refer to: https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go)"
    else
    	echo "Building ethereum CLI."
    fi
    
    go install
    
    echo "done. Please run $exe :-)"