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
71c28cfb
Commit
71c28cfb
authored
Apr 28, 2015
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: set main.gitCommit when building
parent
f4e56753
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
Makefile
Makefile
+2
-2
ldflags.sh
build/ldflags.sh
+13
-0
No files found.
Makefile
View file @
71c28cfb
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
GOBIN
=
build/bin
GOBIN
=
build/bin
geth
:
geth
:
build/env.sh go
install
-v
github.com/ethereum/go-ethereum
/cmd/geth
build/env.sh go
install
-v
$(
shell
build/ldflags.sh
)
.
/cmd/geth
@
echo
"Done building."
@
echo
"Done building."
@
echo
"Run
\"
$(GOBIN)
/geth
\"
to launch geth."
@
echo
"Run
\"
$(GOBIN)
/geth
\"
to launch geth."
mist
:
mist
:
build/env.sh go
install
-v
github.com/ethereum/go-ethereum
/cmd/mist
build/env.sh go
install
-v
$(
shell
build/ldflags.sh
)
.
/cmd/mist
@
echo
"Done building."
@
echo
"Done building."
@
echo
"Run
\"
$(GOBIN)
/mist --asset_path=cmd/mist/assets
\"
to launch mist."
@
echo
"Run
\"
$(GOBIN)
/mist --asset_path=cmd/mist/assets
\"
to launch mist."
...
...
build/ldflags.sh
0 → 100755
View file @
71c28cfb
#!/bin/sh
set
-e
if
[
!
-f
"build/env.sh"
]
;
then
echo
"
$0
must be run from the root of the repository."
exit
2
fi
# set gitCommit when running from a Git checkout.
if
[
-f
".git/HEAD"
]
;
then
echo
"-ldflags '-X main.gitCommit
$(
git rev-parse HEAD
)
'"
fi
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