diff --git a/etc/Deployment/_date.bat b/etc/Deployment/_date.bat new file mode 100644 index 00000000..9cc76172 --- /dev/null +++ b/etc/Deployment/_date.bat @@ -0,0 +1,6 @@ +@echo off +set "DATE_TMP=%TEMP%\~date.%RANDOM%.tmp" +"%~dp0\_date.exe" +%%Y-%%m-%%d > "%DATE_TMP%" +set /p OUT_DATE= < "%DATE_TMP%" +del "%DATE_TMP%" +set "DATE_TMP=" diff --git a/etc/Deployment/_date.exe b/etc/Deployment/_date.exe new file mode 100644 index 00000000..069bae14 Binary files /dev/null and b/etc/Deployment/_date.exe differ diff --git a/etc/Deployment/_deploy.bat b/etc/Deployment/_deploy.bat index beb9532f..20586c14 100644 --- a/etc/Deployment/_deploy.bat +++ b/etc/Deployment/_deploy.bat @@ -16,10 +16,14 @@ if not "%LAMEXP_REDIST%"=="0" ( set "LAMEXP_REDIST=1" ) REM ------------------------------------------ +REM :: SETUP BUILD DATE :: +REM ------------------------------------------ +call "%~dp0\_date.bat" +echo BUILD DATE: %OUT_DATE% +REM ------------------------------------------ REM :: SETUP PATHS :: REM ------------------------------------------ set "OUT_PATH=%~dp0\..\..\bin\%LAMEXP_CONFIG%" -set "OUT_DATE=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%" set "TMP_PATH=%TEMP%\~LameXP.%LAMEXP_CONFIG%.%OUT_DATE%.tmp" set "OBJ_PATH=%~dp0\..\..\obj\%LAMEXP_CONFIG%" set "MOC_PATH=%~dp0\..\..\tmp"