SubtitleEdit/update_rev.bat
XhmikosR e6637083cb * update ChangeLog.txt
* remove trailing whitespace
* improve update_rev.bat

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1175 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
2012-05-11 08:07:38 +00:00

33 lines
723 B
Batchfile

@ECHO OFF
SETLOCAL
PUSHD %~dp0
IF EXIST "SubWCRev.exe" SET "SUBWCREV=SubWCRev.exe"
FOR %%A IN (SubWCRev.exe) DO (SET SUBWCREV=%%~$PATH:A)
IF NOT DEFINED SUBWCREV GOTO SubNoSubWCRev
"%SUBWCREV%" . "src\Properties\AssemblyInfo.cs.in" "src\Properties\AssemblyInfo.cs" -f
IF %ERRORLEVEL% NEQ 0 GOTO SubError
:END
POPD
ENDLOCAL
EXIT /B
:SubNoSubWCRev
ECHO. & ECHO SubWCRev, which is part of TortoiseSVN, wasn't found!
ECHO You should (re)install TortoiseSVN.
GOTO SubCommon
:SubError
ECHO Something went wrong when generating the revision number.
:SubCommon
ECHO I'll use VERSION_REV=0 for now.
TYPE "src\Properties\AssemblyInfo.cs.template" > "src\Properties\AssemblyInfo.cs"
GOTO END