SubtitleEdit/update_rev.bat
XhmikosR 9158e82104 use SubWCRev from TortoiseSVN to get the repository's real revision number and use that
Version should be changed in AssemblyInfo.cs.in and AssemblyInfo.cs.template.

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1147 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
2012-04-28 15:18:49 +00:00

24 lines
489 B
Batchfile

@ECHO OFF
SETLOCAL
PUSHD %~dp0
SET "SUBWCREV=SubWCRev.exe"
"%SUBWCREV%" . "src\Properties\AssemblyInfo.cs.in" "src\Properties\AssemblyInfo.cs" -f
IF %ERRORLEVEL% NEQ 0 GOTO NoSubWCRev
GOTO END
:NoSubWCRev
ECHO. & ECHO SubWCRev, which is part of TortoiseSVN, wasn't found!
ECHO You should (re)install TortoiseSVN.
ECHO I'll use VERSION_REV=0 for now.
TYPE "src\Properties\AssemblyInfo.cs.template" > "src\Properties\AssemblyInfo.cs"
:END
POPD
ENDLOCAL
EXIT /B