Add a -version command to weave and weaver, implemented by embedding the build date by the makefile

This commit is contained in:
Bryan Boreham committed 2014-09-12 17:53:06 +01:00
1 parent 6483c89a2b
commit 21bec9fc78
3 files changed
+20 -1

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
all: docker-image
weaver: ../*.go main.go
go build -ldflags '-extldflags "-static"'
go build -ldflags="-X main.builddate \"`date -u -Iseconds`\" -extldflags '-static'"
.PHONY: docker-image