SubtitleEdit/update_rev.bat
XhmikosR 8ccb66de34 Revert "Add x64 support."
This partially reverts commit cc9ef7a5eb and commit 254b1cb58d.
2014-06-21 20:15:07 +03:00

22 lines
555 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