mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
06e713ffaa
File associations icons are now in install + Icons folder
43 lines
961 B
Batchfile
43 lines
961 B
Batchfile
@ECHO OFF
|
|
SETLOCAL
|
|
PUSHD %~dp0
|
|
SET "ConfigurationName=%~2"
|
|
|
|
ECHO %cd%
|
|
|
|
IF /I "%~1" == "lang" GOTO UpdateLanguageFiles
|
|
IF /I "%~1" == "rev" GOTO UpdateAssemblyInfo
|
|
|
|
:END
|
|
POPD
|
|
ENDLOCAL
|
|
EXIT /B
|
|
|
|
:UpdateLanguageFiles
|
|
SET "ToolPath=src\UpdateLanguageFiles\bin\%ConfigurationName%\UpdateLanguageFiles.exe"
|
|
IF NOT EXIST "%ToolPath%" (
|
|
ECHO Compile Subtitle Edit first!
|
|
GOTO END
|
|
)
|
|
|
|
"%ToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs"
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
ECHO ERROR: Something went wrong when generating the language files...
|
|
)
|
|
GOTO END
|
|
|
|
|
|
:UpdateAssemblyInfo
|
|
SET "ToolPath=src\UpdateAssemblyInfo\bin\%ConfigurationName%\UpdateAssemblyInfo.exe"
|
|
IF NOT EXIST "%ToolPath%" (
|
|
ECHO Compile Subtitle Edit first!
|
|
GOTO END
|
|
)
|
|
|
|
"%ToolPath%" "src\ui\Properties\AssemblyInfo.cs.template" "src\libse\Properties\AssemblyInfo.cs.template"
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
ECHO ERROR: Something went wrong when generating the revision number...
|
|
)
|
|
GOTO END |