mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
iOS build: only use annotated tags for version
This avoids picking the continuous tag. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e8278becd2
commit
6d5144451d
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ LIBUSB_VERSION=1.0.19
|
|||
LIBFTDI_VERSION=1.2
|
||||
|
||||
# set up the Subsurface versions by hand
|
||||
GITVERSION=$(git describe --tags --abbrev=12)
|
||||
CANONICALVERSION=$(git describe --tags --abbrev=12 | sed -e 's/-g.*$// ; s/^v//' | sed -e 's/-/./')
|
||||
GITVERSION=$(git describe --abbrev=12)
|
||||
CANONICALVERSION=$(git describe --abbrev=12 | sed -e 's/-g.*$// ; s/^v//' | sed -e 's/-/./')
|
||||
MOBILEVERSION=$(grep MOBILE ../../cmake/Modules/version.cmake | cut -d\" -f 2)
|
||||
echo "#define GIT_VERSION_STRING \"$GITVERSION\"" > subsurface-mobile/ssrf-version.h
|
||||
echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> subsurface-mobile/ssrf-version.h
|
||||
|
|
Loading…
Add table
Reference in a new issue