SubtitleEdit/update_rev.bat
XhmikosR 54e704904c Revert "Fixed update rev"
This reverts commit cb59784eae.
2014-06-16 09:08:16 +03:00

22 lines
567 B
Batchfile

@ECHO OFF
SETLOCAL
PUSHD %~dp0
IF EXIST "src\UpdateAssemblyInfo\bin\Release\x86\UpdateAssemblyInfo.exe" (
"src\UpdateAssemblyInfo\bin\Release\x86\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs"
) ELSE (
"src\UpdateAssemblyInfo\bin\Debug\x86\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