2014-08-20 23:10:04 +02:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL
|
|
|
|
|
|
|
|
PUSHD %~dp0
|
|
|
|
|
2014-08-10 09:09:02 +02:00
|
|
|
IF NOT EXIST "src\UpdateLanguageFiles\bin\Release\UpdateLanguageFiles.exe" IF NOT EXIST "src\UpdateLanguageFiles\bin\Debug\UpdateLanguageFiles.exe" (
|
|
|
|
ECHO Compile Subtitle Edit first!
|
|
|
|
GOTO END
|
|
|
|
)
|
|
|
|
|
2014-08-20 23:10:04 +02:00
|
|
|
IF EXIST "src\UpdateLanguageFiles\bin\Release\UpdateLanguageFiles.exe" (
|
|
|
|
"src\UpdateLanguageFiles\bin\Release\UpdateLanguageFiles.exe" "LanguageMaster.xml" "src\Logic\LanguageDeserializer.cs"
|
|
|
|
) ELSE (
|
|
|
|
"src\UpdateLanguageFiles\bin\Debug\UpdateLanguageFiles.exe" "LanguageMaster.xml" "src\Logic\LanguageDeserializer.cs"
|
|
|
|
)
|
|
|
|
IF %ERRORLEVEL% NEQ 0 GOTO SubError
|
|
|
|
|
|
|
|
|
|
|
|
:END
|
|
|
|
POPD
|
|
|
|
ENDLOCAL
|
|
|
|
EXIT /B
|
|
|
|
|
|
|
|
:SubError
|
2014-08-10 09:09:02 +02:00
|
|
|
ECHO ERROR: Something went wrong when generating the language files...
|
2014-08-20 23:10:04 +02:00
|
|
|
EXIT /B
|