aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorEric Robitaille <eric@vianet.ca>2014-11-21 13:06:33 +0800
committerEric Robitaille <eric@vianet.ca>2014-11-21 13:06:33 +0800
commit6c098ee779393a85c5a70ba4494b9f22dec9a394 (patch)
treed4966363d2717440daa7d307491535d35a41687a /install.sh
parentc0bbb7e69a0f34020f211061aaa842f1bbedb507 (diff)
downloadgo-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.tar
go-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.tar.gz
go-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.tar.bz2
go-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.tar.lz
go-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.tar.xz
go-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.tar.zst
go-tangerine-6c098ee779393a85c5a70ba4494b9f22dec9a394.zip
changed install.sh to change branch and install executable
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh23
1 files changed, 4 insertions, 19 deletions
diff --git a/install.sh b/install.sh
index 39212c3ed..0b2ee3df2 100755
--- a/install.sh
+++ b/install.sh
@@ -8,12 +8,11 @@ if [ "$1" == "" ]; then
fi
exe=$1
+path=$exe
branch=$2
-branchPath=""
-# Set branchPath for develop as executables have moved
if [ "$branch" == "develop" ]; then
- branchPath="cmd/"
+ path="cmd/$exe"
fi
# Test if go is installed
@@ -25,20 +24,11 @@ if [ "$GOPATH" == "" ]; then
exit
fi
-echo "go get -u -d github.com/ethereum/go-ethereum/$branchPath$exe"
-go get -v -u -d github.com/ethereum/go-ethereum/$branchPath$exe
-if [ $? != 0 ]; then
- echo "go get failed"
- exit
-fi
-
-echo "eth-go"
+echo "changing branch to $branch"
cd $GOPATH/src/github.com/ethereum/go-ethereum
git checkout $branch
-echo "go-ethereum"
-cd $GOPATH/src/github.com/ethereum/go-ethereum/$branchPath$exe
-git checkout $branch
+cd $GOPATH/src/github.com/ethereum/go-ethereum/$path
if [ "$exe" == "mist" ]; then
echo "Building Mist GUI. Assuming Qt is installed. If this step"
@@ -48,9 +38,4 @@ else
fi
go install
-if [ $? == 0 ]; then
- echo "go install failed"
- exit
-fi
-
echo "done. Please run $exe :-)"