2011-04-21 01:45:07 +02:00
|
|
|
@echo off
|
2014-12-22 22:40:20 +01:00
|
|
|
|
|
|
|
:: ---------------------------------------------------------------------------
|
|
|
|
:: SETUP BUILD DATE
|
|
|
|
:: ---------------------------------------------------------------------------
|
|
|
|
|
2011-04-21 20:35:03 +02:00
|
|
|
set "ISO_DATE="
|
2018-04-19 23:35:38 +02:00
|
|
|
set "ISO_TIME="
|
2014-12-22 22:40:20 +01:00
|
|
|
|
2016-12-20 20:32:59 +01:00
|
|
|
if exist "%~dp0\..\..\..\Prerequisites\GnuWin32\date.exe" (
|
2018-04-19 23:35:38 +02:00
|
|
|
for /F "usebackq tokens=1,2" %%a in (`start /B "date" "%~dp0\..\..\..\Prerequisites\GnuWin32\date.exe" +"%%Y-%%m-%%d %%H:%%M:%%S"`) do (
|
|
|
|
set "ISO_DATE=%%a"
|
|
|
|
set "ISO_TIME=%%b"
|
2014-12-22 22:40:20 +01:00
|
|
|
)
|
2011-10-14 23:39:31 +02:00
|
|
|
)
|
2014-12-22 22:40:20 +01:00
|
|
|
|
|
|
|
if "%ISO_DATE%"=="" (
|
2016-12-20 20:32:59 +01:00
|
|
|
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nFailed to set up build date!\n"
|
2014-12-23 00:23:41 +01:00
|
|
|
pause && exit
|
2014-12-22 22:40:20 +01:00
|
|
|
)
|
|
|
|
|
2018-04-19 23:35:38 +02:00
|
|
|
if "%ISO_TIME%"=="" (
|
|
|
|
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nFailed to set up build time!\n"
|
|
|
|
pause && exit
|
|
|
|
)
|
|
|
|
|
2014-12-22 22:40:20 +01:00
|
|
|
echo.
|
2018-04-19 23:35:38 +02:00
|
|
|
echo Build Date/Time: %ISO_DATE% %ISO_TIME%
|
2014-12-22 22:40:20 +01:00
|
|
|
echo.
|