mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
PreBuild.bat: Fix generate overrun number of build built from msvc
This commit is contained in:
parent
084bd023d2
commit
ed0e4fedcf
@ -26,6 +26,14 @@ set "hour=%dt:~8,2%"
|
|||||||
set "min=%dt:~10,2%"
|
set "min=%dt:~10,2%"
|
||||||
set "sec=%dt:~12,2%"
|
set "sec=%dt:~12,2%"
|
||||||
|
|
||||||
|
::
|
||||||
|
:: Remove leading zero from MM (e.g 09 > 9)
|
||||||
|
::
|
||||||
|
for /f "tokens=* delims=0" %%I in ("%MM%") do set MM=%%I
|
||||||
|
|
||||||
|
::
|
||||||
|
:: Index into array to get month name
|
||||||
|
::
|
||||||
for /f "tokens=%MM%" %%I in ("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec") do set "month=%%I"
|
for /f "tokens=%MM%" %%I in ("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec") do set "month=%%I"
|
||||||
|
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user