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
c0bbb7e6
Commit
c0bbb7e6
authored
10 years ago
by
Eric Robitaille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for install script devel
parent
d5ac2490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
install.sh
install.sh
+12
-6
No files found.
install.sh
View file @
c0bbb7e6
#!/bin/sh
if
[
"
$1
"
==
""
]
;
then
echo
"Usage
$0
executable
ethereum branch develop
"
echo
"executable ethereum
or
mist"
echo
"branch develop
or
master"
echo
"Usage
$0
executable
branch
"
echo
"executable ethereum
|
mist"
echo
"branch develop
|
master"
exit
fi
exe
=
$1
branch
=
$2
branchPath
=
""
# Set branchPath for develop as executables have moved
if
[
"
$branch
"
==
"develop"
]
;
then
branchPath
=
"cmd/"
fi
# Test if go is installed
command
-v
go
>
/dev/null 2>&1
||
{
echo
>
&2
"Unable to find 'go'. This script requires go."
;
exit
1
;
}
...
...
@@ -19,8 +25,8 @@ if [ "$GOPATH" == "" ]; then
exit
fi
echo
"go get -u -d github.com/ethereum/go-ethereum/
cmd/
$exe
"
go get
-v
-u
-d
github.com/ethereum/go-ethereum/
cmd/
$exe
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
...
...
@@ -31,7 +37,7 @@ cd $GOPATH/src/github.com/ethereum/go-ethereum
git checkout
$branch
echo
"go-ethereum"
cd
$GOPATH
/src/github.com/ethereum/go-ethereum/
cmd/
$exe
cd
$GOPATH
/src/github.com/ethereum/go-ethereum/
$branchPath
$exe
git checkout
$branch
if
[
"
$exe
"
==
"mist"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
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