File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ IF "%Mode%" == "Stable" (
8787)
8888
8989REM Get product version and code revision.
90- FOR /F " usebackq tokens=1* delims==" %%A IN (`CALL GetVersion.cmd`) DO SET %%A =%%B
90+ FOR /F " usebackq tokens=1* delims==" %%A IN (`CALL GetVersion.cmd %Mode% `) DO SET %%A =%%B
9191SET Version = %OpenRails_Version%
9292SET Revision = %OpenRails_Revision%
9393
Original file line number Diff line number Diff line change @@ -4,12 +4,11 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
44REM Get product version and code revision.
55SET Version =
66SET Revision =
7- FOR /F " usebackq tokens=2" %%B IN (`git branch --points-at HEAD`) DO SET Branch = %%B
87FOR /F " usebackq tokens=1* delims=-" %%V IN (`git describe --first-parent --always --long`) DO (
98 SET Version = %%V
109 SET Revision = %%W
1110)
12- IF " %Branch % " == " unstable " (
11+ IF " %~1 %" == " Unstable " (
1312 SET TZ = UTC
1413 FOR /F " usebackq tokens=1* delims=-" %%V IN (`git log -1 --pretty^ =format:^ %%a d --date^ =format-local:^ %%Y ^ .%%m ^ .%%d -^ %%H ^ %%M `) DO (
1514 SET Version = %%V
@@ -21,6 +20,5 @@ IF "%Version%" == "" (
2120)
2221
2322REM Output version numbers.
24- ECHO OpenRails_Branch=%Branch%
2523ECHO OpenRails_Version=%Version%
2624ECHO OpenRails_Revision=%Revision%
You can’t perform that action at this time.
0 commit comments