adapted version generation to cfg module, added and fixed unit tests

This commit is contained in:
2022-10-19 19:32:41 +02:00
parent 90872e0c60
commit 9dd2a49d9b
7 changed files with 135 additions and 21 deletions

View File

@@ -18,7 +18,7 @@
#
# no need to modify anything below
tool = tablizer
version = $(shell egrep "= .v" lib/common.go | cut -d'=' -f2 | cut -d'"' -f 2)
version = $(shell egrep "= .v" cfg/config.go | cut -d'=' -f2 | cut -d'"' -f 2)
archs = android darwin freebsd linux netbsd openbsd windows
PREFIX = /usr/local
UID = root
@@ -42,7 +42,7 @@ cmd/%.go: %.pod
echo "\`" >> cmd/$*.go
buildlocal:
go build -ldflags "-X 'github.com/tlinden/tablizer/lib.VERSION=$(VERSION)'"
go build -ldflags "-X 'github.com/tlinden/tablizer/cfg.VERSION=$(VERSION)'"
release:
./mkrel.sh $(tool) $(version)