AppImage: fix handling of revision that are tags second try

This commit is contained in:
Moritz Bunkus 2018-10-26 10:15:26 +02:00
parent fc0946db0a
commit 3b9b39163e
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -87,9 +87,11 @@ QTDIR="${HOME}/opt/qt/${QTVERSION}/gcc_64"
NO_GLIBC_VERSION=1
if [[ ( -d .git ) && ( $RELEASE_VERSION == 0 ) ]]; then
# If revision is a tag: release-28.2.0
# If it isn't: release-28.1.0-7-g558fbc986
VERSION="$(git describe --tags | sed -e 's/release-//')"
if [[ $VERSION != *-*-* ]]; then
VERSION=${VERSION}-0
if [[ $VERSION != *-*-*-* ]]; then
VERSION=${VERSION}-0-g0
fi
NUM=${VERSION%-*}
NUM=${NUM##*-}