]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
safcm: add commit date to version output
authorSimon Ruderich <simon@ruderich.org>
Mon, 31 May 2021 20:31:13 +0000 (22:31 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 1 Jun 2021 05:59:55 +0000 (07:59 +0200)
Makefile

index 4bf77c25414480744a3747898e44fa803c83dba0..b21ed3d0893740fd8fe2f590065f1f60738e43a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 LDFLAGS = '\
-    -X "main.versionGit=$(shell git describe --long --tags --dirty --always)" \
+    -X "main.versionGit=$(shell git describe --long --tags --dirty --always) \
+$(shell git show --no-patch --pretty=format:%as)" \
     -X "main.versionGo=$(shell go version)" \
 '
 # Build with `make GOFLAGS=` if -race is not supported