gtk: auto versioning from git tags
This commit is contained in:
@@ -5,11 +5,12 @@ all: setup
|
||||
setup: build/
|
||||
meson build
|
||||
|
||||
VER := 1.0.2
|
||||
VER_RAW := $(shell git -C .. describe --tags --abbrev=0 2>/dev/null || git -C .. describe --tags 2>/dev/null || printf '0.0.0')
|
||||
VER := $(patsubst v%,%,$(VER_RAW))
|
||||
TMP := $(shell mktemp -d)
|
||||
rpm:
|
||||
git -C .. archive --format=tar.gz --prefix=kordophone/ -o $(TMP)/v$(VER).tar.gz HEAD
|
||||
rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)"
|
||||
rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)" --define "app_version $(VER)"
|
||||
|
||||
deb:
|
||||
./dist/deb/build-deb.sh $(VER)
|
||||
|
||||
Reference in New Issue
Block a user