mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2025-03-15 20:04:48 +00:00
Get version from tag if building from tag.
This commit is contained in:
parent
a2a3771906
commit
4e140dd334
1 changed files with 3 additions and 0 deletions
|
@ -7,8 +7,11 @@ if [ -s "$ROOT/../version.txt" ]; then
|
|||
VERSION=$(cat "$ROOT/../version.txt" | tr -d '[:space:]')
|
||||
fi
|
||||
if [ -z $VERSION ] && [ -d "$ROOT/../.git" ]; then
|
||||
TAG=$(git tag --points-at HEAD | sed 's/v//')
|
||||
if [ "$1" == "--tar" ]; then
|
||||
VERSION=$(git describe --dirty --tags --always | sed 's/debian\///g')
|
||||
elif [ -n "$TAG" ]; then
|
||||
VERSION="$TAG"
|
||||
else
|
||||
VERSION=$(git log -1 --pretty=%H)
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue