gen_scmversion: Don't use latest GitHub release tag

This commit is contained in:
Connor McLaughlin committed 2020-05-19 15:31:11 +10:00
1 parent f49c2dedf6
commit 7bb087fe73
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
SET VERSIONFILE="scmversion.cpp"
FOR /F "tokens=* USEBACKQ" %%g IN (`git rev-parse --abbrev-ref HEAD`) do (SET "BRANCH=%%g")
FOR /F "tokens=* USEBACKQ" %%g IN (`git describe --tags --dirty`) do (SET "TAG=%%g")
FOR /F "tokens=* USEBACKQ" %%g IN (`git describe --tags --dirty --exclude latest`) do (SET "TAG=%%g")
SET SIGNATURELINE=// %BRANCH% %TAG%
SET /P EXISTINGLINE=< %VERSIONFILE%
+1 -1
View File
@@ -2,7 +2,7 @@
VERSION_FILE="scmversion.cpp"
BRANCH=$(git rev-parse --abbrev-ref HEAD | tr -d '\r\n')
TAG=$(git describe --tags --dirty | tr -d '\r\n')
TAG=$(git describe --tags --dirty --exclude latest | tr -d '\r\n')
SIGNATURE_LINE="// ${BRANCH} ${TAG}"