| Revision 2542,
820 bytes
checked in by lowjoel, 2 months ago
(diff) |
|
Fixed syntax error with the batch script.
|
| 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 | exit /b %ERRORLEVEL% |
|---|
| 8 | ) |
|---|
| 9 | goto end |
|---|
| 10 | |
|---|
| 11 | :searchWoWProgramFiles |
|---|
| 12 | |
|---|
| 13 | if not exist "%ProgramFiles(x86)%\TortoiseSVN\bin\SubWCRev.exe" goto searchPath |
|---|
| 14 | "%ProgramFiles(x86)%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f |
|---|
| 15 | if ERRORLEVEL 1 ( |
|---|
| 16 | exit /b %ERRORLEVEL% |
|---|
| 17 | ) |
|---|
| 18 | goto end |
|---|
| 19 | |
|---|
| 20 | :searchPath |
|---|
| 21 | |
|---|
| 22 | for %%i in (SubWCRev.exe) do ( |
|---|
| 23 | if exist "%%~$PATH:i" ( |
|---|
| 24 | "SubWCRev.exe" %1 %2 %3 -f |
|---|
| 25 | ) else ( |
|---|
| 26 | goto noSubWCRev |
|---|
| 27 | ) |
|---|
| 28 | ) |
|---|
| 29 | if ERRORLEVEL 1 ( |
|---|
| 30 | exit /b %ERRORLEVEL% |
|---|
| 31 | ) |
|---|
| 32 | |
|---|
| 33 | goto end |
|---|
| 34 | |
|---|
| 35 | :noSubWCRev |
|---|
| 36 | echo No TortoiseSVN-Client (SubWCRev.exe) detected! >&2 |
|---|
| 37 | exit /b 1 |
|---|
| 38 | |
|---|
| 39 | :end |
|---|
Note: See
TracBrowser
for help on using the repository browser.