source: branches/eraser6/6.0/UpdateVersions.bat @ 2317

Revision 2317, 527 bytes checked in by lowjoel, 3 years ago (diff)

Backport from revision 2316 from trunk/eraser:
When obtaining the revision information, if we cannot find SubWCRev, we should output to stderr to be captured in the build server logs.

Line 
1@echo off
2rem Replace all template version placeholders in the given template file for keywords.
3
4if not exist "%ProgramFiles%\TortoiseSVN\bin\SubWCRev.exe" goto searchWoWProgramFiles
5"%ProgramFiles%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f
6if ERRORLEVEL 1 (
7    goto noSubWCRev
8)
9goto end
10
11:searchWoWProgramFiles
12
13"%ProgramW6432%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f
14if ERRORLEVEL 1 (
15    goto noSubWCRev
16)
17
18goto end
19
20:noSubWCRev
21echo No TortoiseSVN-Client (SubWCRev.exe) detected! >&2
22exit /b 1
23
24:end
Note: See TracBrowser for help on using the repository browser.