mkrelease.sh: get version via git

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit 2020-05-21 15:31:23 +02:00 committed by afayaz-feral
parent 937bcf3c73
commit 082b1c6619

View File

@ -7,10 +7,9 @@ set -e
meson subprojects download
meson subprojects update
# Bump in tandem with meson.build, run script once new tag is up.
VERSION="1.6-dev"
NAME="gamemode"
VERSION=$(git describe --tags --dirty)
./scripts/git-archive-all.sh --format tar --prefix ${NAME}-${VERSION}/ --verbose -t HEAD ${NAME}-${VERSION}.tar
xz -9 "${NAME}-${VERSION}.tar"