From 0f9dddad6543051dd9be4d5864b6f0fe81ddbd5b Mon Sep 17 00:00:00 2001 From: lordmulder Date: Wed, 23 Feb 2011 02:43:06 +0100 Subject: [PATCH] Extend deployment script to re-build (update + release) translation files. --- etc/Deployment/_deploy.bat | 1 + etc/Deployment/_lupdate.bat | 39 +++++++++++++++++++++++++++++++++++++ src/Config.h | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 etc/Deployment/_lupdate.bat diff --git a/etc/Deployment/_deploy.bat b/etc/Deployment/_deploy.bat index 78590401..f985a954 100644 --- a/etc/Deployment/_deploy.bat +++ b/etc/Deployment/_deploy.bat @@ -39,6 +39,7 @@ del /Q "%MOC_PATH%\*.h" REM ------------------------------------------ REM :: BUILD BINARIES :: REM ------------------------------------------ +call _lupdate.bat call _build.bat "..\..\LameXP.sln" "%LAMEXP_CONFIG%" if not "%LAMEXP_ERROR%"=="0" ( call _error.bat "BUILD HAS FAILED" diff --git a/etc/Deployment/_lupdate.bat b/etc/Deployment/_lupdate.bat new file mode 100644 index 00000000..c380d4e6 --- /dev/null +++ b/etc/Deployment/_lupdate.bat @@ -0,0 +1,39 @@ +@echo off +set "LAMEXP_ERROR=1" +echo ---------------------------------------------------------------- +echo Updating Translation files +echo ---------------------------------------------------------------- +call _paths.bat +if not "%LAMEXP_ERROR%"=="0" GOTO:EOF +REM ----------------------------------------------------------------- +call "%PATH_MSVC90%\VC\bin\vcvars32.bat" x86 +call "%PATH_QTMSVC%\bin\qtvars.bat" +REM ----------------------------------------------------------------- +set "LAMEXP_ERROR=1" +set "LST_FILE=%TEMP%\~list.%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%.lst" +echo %LST_FILE% +REM ----------------------------------------------------------------- +del "%LST_FILE%" 2> NUL +for %%f in (..\..\gui\*.ui) do ( + echo %%f >> "%LST_FILE%" +) +for %%f in (..\..\src\*.cpp) do ( + echo %%f >> "%LST_FILE%" +) +for %%f in (..\..\src\*.h) do ( + echo %%f >> "%LST_FILE%" +) +REM ----------------------------------------------------------------- +for %%f in (..\Translation\*.ts) do ( + del %%f.bak 2> NUL + copy %%f %%f.bak + lupdate.exe "@%LST_FILE%" -no-obsolete -ts %%f +) +del "%LST_FILE%" +echo ---------------------------------------------------------------- +for %%f in (..\Translation\LameXP_??.ts) do ( + lrelease.exe %%f -qm ..\..\res\localization\%%~nf.qm +) +echo ---------------------------------------------------------------- +set "LST_FILE=" +set "LAMEXP_ERROR=0" diff --git a/src/Config.h b/src/Config.h index 0cfc058b..5aa14602 100644 --- a/src/Config.h +++ b/src/Config.h @@ -25,7 +25,7 @@ #define VER_LAMEXP_MAJOR 4 #define VER_LAMEXP_MINOR_HI 0 #define VER_LAMEXP_MINOR_LO 1 -#define VER_LAMEXP_BUILD 330 +#define VER_LAMEXP_BUILD 331 #define VER_LAMEXP_SUFFIX Beta-1 /*