SubtitleEdit/update_rev.bat
Nikolaj Olsson 1cf58c6772 Update update_rev.bat
no works both in release and debug mode
2014-03-04 07:58:56 +01:00

22 lines
553 B
Batchfile

@ECHO OFF
SETLOCAL
PUSHD %~dp0
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