mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
e6637083cb
* remove trailing whitespace * improve update_rev.bat git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1175 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
33 lines
723 B
Batchfile
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
|