]> Nishi Git Mirror - aya.git/commitdiff
Make use of tags 0.5.0
authorIzuru Yakumo <yakumo.izuru@chaotic.ninja>
Sun, 9 Apr 2023 02:45:23 +0000 (23:45 -0300)
committerIzuru Yakumo <yakumo.izuru@chaotic.ninja>
Sun, 9 Apr 2023 02:45:23 +0000 (23:45 -0300)
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
Makefile

index 6b90e2d4e61bc7c3554595753081ca7888f06f03..4ac85afc2022549fdd49e64738a834c29fac34ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 destdir ?= 
 goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
 prefix ?= /usr/local
-version ?= `git rev-list --count HEAD || echo "$version"`
+version ?= `git describe --abbrev=0 --tags || echo "$version"`
 commit ?= `git rev-parse --short HEAD || echo "$commit"`