mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-16 19:05:39 +00:00
gen_scmversion: Don't use latest GitHub release tag
This commit is contained in:
parent
f49c2dedf6
commit
7bb087fe73
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
SET VERSIONFILE="scmversion.cpp"
|
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 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 SIGNATURELINE=// %BRANCH% %TAG%
|
||||||
SET /P EXISTINGLINE=< %VERSIONFILE%
|
SET /P EXISTINGLINE=< %VERSIONFILE%
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
VERSION_FILE="scmversion.cpp"
|
VERSION_FILE="scmversion.cpp"
|
||||||
BRANCH=$(git rev-parse --abbrev-ref HEAD | tr -d '\r\n')
|
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}"
|
SIGNATURE_LINE="// ${BRANCH} ${TAG}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue