batch files: check if the binaries exist first.

This commit is contained in:
XhmikosR 2014-08-10 10:09:02 +03:00
parent 9429fae4fc
commit e854019443
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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