aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
blob: 9719a1afcbf7c369dadc2228e714a34f3a9698dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/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/serpent-go

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
if [ $? == 0 ]; then
    echo "go install failed"
    exit
fi

echo "done. Please run $exe :-)"
ports PR: 232907 exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D17816
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
Deprecate most glib12 consumers 2018-10-12T09:19:04+00:00 antoine antoine@FreeBSD.org 2018-10-12T09:19:04+00:00 51db1de74da3d172ed5fa5888030835d34c248bf With hat: portmgr
With hat:	portmgr