SubtitleEdit/update_rev.bat

22 lines
555 B
Batchfile
Raw Normal View History

@ECHO OFF
SETLOCAL
PUSHD %~dp0
2014-03-04 18:11:14 +01:00
IF EXIST "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" (
"src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs"
) ELSE (
"src\UpdateAssemblyInfo\bin\Debug\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs"
)
IF %ERRORLEVEL% NEQ 0 GOTO SubError
:END
POPD
ENDLOCAL
EXIT /B
:SubError
ECHO Something went wrong when generating the revision number.
EXIT /B