good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
71c28cfb
Commit
71c28cfb
authored
9 years ago
by
Felix Lange
Browse files
Options
Downloads
Patches
Plain Diff
Makefile: set main.gitCommit when building
parent
f4e56753
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
build/ldflags.sh
+13
-0
13 additions, 0 deletions
build/ldflags.sh
with
15 additions
and
2 deletions
Makefile
+
2
−
2
View file @
71c28cfb
...
...
@@ -9,12 +9,12 @@
GOBIN
=
build/bin
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
"Run
\"
$(
GOBIN
)
/geth
\"
to launch geth."
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
"Run
\"
$(
GOBIN
)
/mist --asset_path=cmd/mist/assets
\"
to launch mist."
...
...
This diff is collapsed.
Click to expand it.
build/ldflags.sh
0 → 100755
+
13
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment