mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
When building from tar file, check .gitversion to get the correct version
Distribution builds on Linux tend to be made from tar files, not from git trees. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dc47003e5b
commit
20c1907adb
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ if [ $# -eq 2 ] && [ "$2" ]; then
|
||||||
v0=$2
|
v0=$2
|
||||||
else
|
else
|
||||||
cmd="git describe --tags --abbrev=12"
|
cmd="git describe --tags --abbrev=12"
|
||||||
v0=$($cmd) || croak "odd; command '$cmd' failed"
|
v0=$($cmd) || v0=$(cat .gitversion) || croak "odd; command '$cmd' failed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# strip off the 'v' prefix, if any
|
# strip off the 'v' prefix, if any
|
||||||
|
|
Loading…
Add table
Reference in a new issue