Skip to content

Commit

Permalink
better release versions
Browse files Browse the repository at this point in the history
if the tag matches exact, only use this. no suffices.
  • Loading branch information
rurban committed Dec 29, 2024
1 parent 39a0a81 commit cd5118b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-aux/version-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
# git tag -d "test1.2"; git checkout -- README
#

SCRIPTVERSION=2017-08-24
SCRIPTVERSION=2024-12-29

prog=$0

Expand Down Expand Up @@ -176,7 +176,7 @@ fi
# read git version, if the repo has uncommitted changes append
# '-dirty' to version.
if test -z "$v"; then
v=$(git describe --long --tags --always --match "$prefix*" --abbrev=$abbrev \
v=$(git describe --tags --match "$prefix*" --abbrev=$abbrev \
--dirty 2>/dev/null) || v=UNKNOWN
v=$(echo "$v" | sed "$tag_sed_script" | sed "s/^$prefix//")
fi
Expand Down

0 comments on commit cd5118b

Please sign in to comment.