mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
27 lines
765 B
Batchfile
27 lines
765 B
Batchfile
@ECHO OFF
|
|
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 (
|
|
"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 ERROR: Something went wrong when generating the revision number...
|
|
EXIT /B
|