2014-09-11 07:08:05 +02:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL
|
|
|
|
PUSHD %~dp0
|
2015-08-29 08:46:26 +02:00
|
|
|
SET "ConfigurationName=%~2"
|
2014-09-11 07:08:05 +02:00
|
|
|
|
|
|
|
IF /I "%~1" == "lang" GOTO UpdateLanguageFiles
|
|
|
|
IF /I "%~1" == "rev" GOTO UpdateAssemblyInfo
|
|
|
|
|
|
|
|
:END
|
|
|
|
POPD
|
|
|
|
ENDLOCAL
|
|
|
|
EXIT /B
|
|
|
|
|
|
|
|
|
|
|
|
:UpdateLanguageFiles
|
2015-08-29 08:46:26 +02:00
|
|
|
IF NOT EXIST "src\UpdateLanguageFiles\bin\%ConfigurationName%\UpdateLanguageFiles.exe" (
|
2014-09-11 07:08:05 +02:00
|
|
|
ECHO Compile Subtitle Edit first!
|
|
|
|
GOTO END
|
|
|
|
)
|
|
|
|
|
2015-08-29 08:46:26 +02:00
|
|
|
"src\UpdateLanguageFiles\bin\%ConfigurationName%\UpdateLanguageFiles.exe" "LanguageMaster.xml" "src\Logic\LanguageDeserializer.cs"
|
2014-09-11 07:08:05 +02:00
|
|
|
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
ECHO ERROR: Something went wrong when generating the language files...
|
|
|
|
)
|
|
|
|
GOTO END
|
|
|
|
|
|
|
|
|
|
|
|
:UpdateAssemblyInfo
|
2015-08-29 08:46:26 +02:00
|
|
|
IF NOT EXIST "src\UpdateAssemblyInfo\bin\%ConfigurationName%\UpdateAssemblyInfo.exe" (
|
2014-09-11 07:08:05 +02:00
|
|
|
ECHO Compile Subtitle Edit first!
|
|
|
|
GOTO END
|
|
|
|
)
|
|
|
|
|
2015-08-29 08:46:26 +02:00
|
|
|
"src\UpdateAssemblyInfo\bin\%ConfigurationName%\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "libse\Properties\AssemblyInfo.cs.template"
|
2014-09-11 07:08:05 +02:00
|
|
|
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
ECHO ERROR: Something went wrong when generating the revision number...
|
|
|
|
)
|
2015-08-29 08:46:26 +02:00
|
|
|
GOTO END
|