Browse Source

mkrelease.sh: get version via git

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
Stephan Lachnit 4 years ago
parent
commit
082b1c6619
1 changed files with 2 additions and 3 deletions
  1. 2 3
      scripts/mkrelease.sh

+ 2 - 3
scripts/mkrelease.sh

@@ -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"