2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00

PreBuild.bat: Fix generate overrun number of build built from msvc

This commit is contained in:
s1lent 2019-08-11 03:01:18 +07:00
parent 084bd023d2
commit ed0e4fedcf
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -26,6 +26,14 @@ set "hour=%dt:~8,2%"
set "min=%dt:~10,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"
::