Get build date on Windows without Python

This commit is contained in:
anatoly techtonik 2016-09-04 22:07:07 +03:00
parent 4b350d02e0
commit f247823936
2 changed files with 11 additions and 1 deletions

View File

@ -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

10
tools/build-date.go Normal file
View File

@ -0,0 +1,10 @@
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println(time.Now().Local().Format("January 02, 2006"))
}