Workaround for "console window not drawing" bug on Wine.
[LameXP.git] / etc / Deployment / _lupdate.bat
blobe35755f13fa7ed877b5854deb77294ecc35dcc14
1 @echo off
2 set "LAMEXP_ERROR=1"
3 echo ----------------------------------------------------------------
4 echo Updating Translation files
5 echo ----------------------------------------------------------------
6 call "%~dp0\_paths.bat"
7 if not "%LAMEXP_ERROR%"=="0" GOTO:EOF
8 REM -----------------------------------------------------------------
9 set "LAMEXP_ERROR=1"
10 REM -----------------------------------------------------------------
11 call "%PATH_MSVC90%\VC\bin\vcvars32.bat" x86
12 call "%PATH_QTMSVC%\bin\qtenv2.bat"
13 REM -----------------------------------------------------------------
14 set "LAMEXP_ERROR=1"
15 set "LST_FILE=%TEMP%\~list.%RANDOM%%RANDOM%.tmp"
16 echo %LST_FILE%
17 REM -----------------------------------------------------------------
18 del "%LST_FILE%" 2> NUL
19 for %%f in ("%~dp0\..\..\gui\*.ui") do (
20         echo %%f >> "%LST_FILE%"
22 for %%f in ("%~dp0\..\..\src\*.cpp") do (
23         echo %%f >> "%LST_FILE%"
25 for %%f in ("%~dp0\..\..\src\*.h") do (
26         echo %%f >> "%LST_FILE%"
28 REM -----------------------------------------------------------------
29 for %%f in ("%~dp0\..\Translation\*.ts") do (
30         del %%f.bak 2> NUL
31         copy %%f %%f.bak
32         lupdate.exe "@%LST_FILE%" -no-obsolete -ts %%f
34 del "%LST_FILE%"
35 echo ----------------------------------------------------------------
36 for %%f in ("%~dp0\..\Translation\LameXP_??.ts") do (
37         lrelease.exe %%f -qm "%~dp0\..\..\res\localization\%%~nf.qm"
39 echo ----------------------------------------------------------------
40 set "LST_FILE="
41 set "LAMEXP_ERROR=0"