mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
AppImage: fix handling of revision that are tags
For a tag such as "release-28.0.0", `git describe --tags` won't append a commit number suffix.
This commit is contained in:
parent
2371689bac
commit
c853050594
@ -88,6 +88,9 @@ NO_GLIBC_VERSION=1
|
||||
|
||||
if [[ ( -d .git ) && ( $RELEASE_VERSION == 0 ) ]]; then
|
||||
VERSION="$(git describe --tags | sed -e 's/release-//')"
|
||||
if [[ $VERSION != *-*-* ]]; then
|
||||
VERSION=${VERSION}-0
|
||||
fi
|
||||
NUM=${VERSION%-*}
|
||||
NUM=${NUM##*-}
|
||||
VERSION="${VERSION%%-*}-revision-$(printf '%03d' ${NUM})-${VERSION##*-}"
|
||||
|
Loading…
Reference in New Issue
Block a user