mirror of
https://github.com/yudai/gotty.git
synced 2025-09-21 21:40:49 +02:00
Show commit ID on version
This commit is contained in:
parent
4fd3ac376c
commit
91ee778665
3 changed files with 6 additions and 4 deletions
7
Makefile
7
Makefile
|
@ -1,8 +1,9 @@
|
|||
OUTPUT_DIR = ./builds
|
||||
GIT_COMMIT = `git rev-parse HEAD`
|
||||
GIT_COMMIT = `git rev-parse HEAD | cut -c1-10`
|
||||
BUILD_OPTIONS = -ldflags "-X main.CommitID=$(GIT_COMMIT)"
|
||||
|
||||
gotty: server/asset.go main.go server/*.go webtty/*.go backend/*.go
|
||||
godep go build
|
||||
gotty: server/asset.go main.go server/*.go webtty/*.go backend/*.go Makefile
|
||||
godep go build ${BUILD_OPTIONS}
|
||||
|
||||
asset: server/asset.go
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue