Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
6c098ee7
Commit
6c098ee7
authored
Nov 21, 2014
by
Eric Robitaille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed install.sh to change branch and install executable
parent
c0bbb7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
19 deletions
+4
-19
install.sh
install.sh
+4
-19
No files found.
install.sh
View file @
6c098ee7
...
@@ -8,12 +8,11 @@ if [ "$1" == "" ]; then
...
@@ -8,12 +8,11 @@ if [ "$1" == "" ]; then
fi
fi
exe
=
$1
exe
=
$1
path
=
$exe
branch
=
$2
branch
=
$2
branchPath
=
""
# Set branchPath for develop as executables have moved
if
[
"
$branch
"
==
"develop"
]
;
then
if
[
"
$branch
"
==
"develop"
]
;
then
branchPath
=
"cmd/
"
path
=
"cmd/
$exe
"
fi
fi
# Test if go is installed
# Test if go is installed
...
@@ -25,20 +24,11 @@ if [ "$GOPATH" == "" ]; then
...
@@ -25,20 +24,11 @@ if [ "$GOPATH" == "" ]; then
exit
exit
fi
fi
echo
"go get -u -d github.com/ethereum/go-ethereum/
$branchPath$exe
"
echo
"changing branch to
$branch
"
go get
-v
-u
-d
github.com/ethereum/go-ethereum/
$branchPath$exe
if
[
$?
!=
0
]
;
then
echo
"go get failed"
exit
fi
echo
"eth-go"
cd
$GOPATH
/src/github.com/ethereum/go-ethereum
cd
$GOPATH
/src/github.com/ethereum/go-ethereum
git checkout
$branch
git checkout
$branch
echo
"go-ethereum"
cd
$GOPATH
/src/github.com/ethereum/go-ethereum/
$path
cd
$GOPATH
/src/github.com/ethereum/go-ethereum/
$branchPath$exe
git checkout
$branch
if
[
"
$exe
"
==
"mist"
]
;
then
if
[
"
$exe
"
==
"mist"
]
;
then
echo
"Building Mist GUI. Assuming Qt is installed. If this step"
echo
"Building Mist GUI. Assuming Qt is installed. If this step"
...
@@ -48,9 +38,4 @@ else
...
@@ -48,9 +38,4 @@ else
fi
fi
go
install
go
install
if
[
$?
==
0
]
;
then
echo
"go install failed"
exit
fi
echo
"done. Please run
$exe
:-)"
echo
"done. Please run
$exe
:-)"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment