diff --git a/cmd/yarr/main.go b/cmd/yarr/main.go index ce01f2a..805eee0 100644 --- a/cmd/yarr/main.go +++ b/cmd/yarr/main.go @@ -73,7 +73,7 @@ func main() { flag.Parse() if ver { - fmt.Printf("v%s (%s)\n", Version, GitHash) + fmt.Printf("%s (%s)\n", Version, GitHash) return } diff --git a/makefile b/makefile index 77c051a..826e307 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -VERSION=2.6 +VERSION=$(shell git describe --exact-match --tags HEAD 2>/dev/null || echo bleeding) GITHASH=$(shell git rev-parse --short=8 HEAD) GO_TAGS = sqlite_foreign_keys sqlite_json sqlite_fts5