Skip to content

Commit

Permalink
build.sh: Fix tarball name
Browse files Browse the repository at this point in the history
'meson dist' produces tarball name based on the version in meson.build,
not on the date of run.

For getting the latest version cannot be used much simpler 'git describe
--abbrev=0' (the latest tag), because fork might have less tags or even
no tag.

Fixes: 2e8b3b2 ("build.sh: Add support for meson dist")
Fixes: 6d1f6e0 ("build.sh: Fix testing release build")
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Oct 18, 2024
1 parent 11fef29 commit b711811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ install()
dist()
{
local formats="xztar,gztar,zip"
local tag="$(date +%Y%m%d)"
#local tag="$(git describe --abbrev=0)"
local tag="$(grep -w version.: meson.build | sed "s/.*version.:.'\([0-9]\+\)'.*/\1/")"
local f

echo "=== dist ($formats) ==="
Expand Down

0 comments on commit b711811

Please sign in to comment.