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" (
87
87
)
88
88
89
89
REM 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
91
91
SET Version = %OpenRails_Version%
92
92
SET Revision = %OpenRails_Revision%
93
93
Original file line number Diff line number Diff line change @@ -4,12 +4,11 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
4
4
REM Get product version and code revision.
5
5
SET Version =
6
6
SET Revision =
7
- FOR /F " usebackq tokens=2" %%B IN (`git branch --points-at HEAD`) DO SET Branch = %%B
8
7
FOR /F " usebackq tokens=1* delims=-" %%V IN (`git describe --first-parent --always --long`) DO (
9
8
SET Version = %%V
10
9
SET Revision = %%W
11
10
)
12
- IF " %Branch % " == " unstable " (
11
+ IF " %~1 %" == " Unstable " (
13
12
SET TZ = UTC
14
13
FOR /F " usebackq tokens=1* delims=-" %%V IN (`git log -1 --pretty^ =format:^ %%a d --date^ =format-local:^ %%Y ^ .%%m ^ .%%d -^ %%H ^ %%M `) DO (
15
14
SET Version = %%V
@@ -21,6 +20,5 @@ IF "%Version%" == "" (
21
20
)
22
21
23
22
REM Output version numbers.
24
- ECHO OpenRails_Branch=%Branch%
25
23
ECHO OpenRails_Version=%Version%
26
24
ECHO OpenRails_Revision=%Revision%
You can’t perform that action at this time.
0 commit comments