mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
batch files: check if the binaries exist first.
This commit is contained in:
parent
9429fae4fc
commit
e854019443
@ -3,6 +3,11 @@ SETLOCAL
|
||||
|
||||
PUSHD %~dp0
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
IF EXIST "src\UpdateLanguageFiles\bin\Release\UpdateLanguageFiles.exe" (
|
||||
"src\UpdateLanguageFiles\bin\Release\UpdateLanguageFiles.exe" "LanguageMaster.xml" "src\Logic\LanguageDeserializer.cs"
|
||||
) ELSE (
|
||||
@ -17,5 +22,5 @@ ENDLOCAL
|
||||
EXIT /B
|
||||
|
||||
:SubError
|
||||
ECHO Something went wrong when generating the language files.
|
||||
ECHO ERROR: Something went wrong when generating the language files...
|
||||
EXIT /B
|
||||
|
@ -3,6 +3,11 @@ SETLOCAL
|
||||
|
||||
PUSHD %~dp0
|
||||
|
||||
IF NOT EXIST "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" IF NOT EXIST "src\UpdateAssemblyInfo\bin\Debug\UpdateAssemblyInfo.exe" (
|
||||
ECHO Compile Subtitle Edit first!
|
||||
GOTO END
|
||||
)
|
||||
|
||||
IF EXIST "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" (
|
||||
"src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs"
|
||||
) ELSE (
|
||||
@ -17,5 +22,5 @@ ENDLOCAL
|
||||
EXIT /B
|
||||
|
||||
:SubError
|
||||
ECHO Something went wrong when generating the revision number.
|
||||
ECHO ERROR: Something went wrong when generating the revision number...
|
||||
EXIT /B
|
||||
|
Loading…
Reference in New Issue
Block a user