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