diff --git a/Makefile b/Makefile index c89a7aa5..2480d529 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION = $(shell git describe --tags --abbrev=0) HASH = $(shell git rev-parse --short HEAD) -DATE = $(shell python -c 'import time; print(time.strftime("%B %d, %Y"))') +DATE = $(shell go run tools/build-date.go) # Builds micro after checking dependencies but without updating the runtime build: deps tcell diff --git a/tools/build-date.go b/tools/build-date.go new file mode 100644 index 00000000..ff994d2a --- /dev/null +++ b/tools/build-date.go @@ -0,0 +1,10 @@ +package main + +import ( + "fmt" + "time" +) + +func main() { + fmt.Println(time.Now().Local().Format("January 02, 2006")) +}