Changeset 2541 for trunk/eraser


Ignore:
Timestamp:
3/17/2012 12:55:49 PM (3 years ago)
Author:
lowjoel
Message:

Handle no-TortoiseSVN situations differently from SubWCRev returning an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/UpdateVersions.bat

    r2316 r2541  
    55"%ProgramFiles%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f 
    66if ERRORLEVEL 1 ( 
    7     goto noSubWCRev 
     7    exit /b %ERRORLEVEL% 
    88) 
    99goto end 
     
    1111:searchWoWProgramFiles 
    1212 
    13 "%ProgramW6432%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f 
     13if not exist "%ProgramFiles(x86)%\TortoiseSVN\bin\SubWCRev.exe" goto searchPath 
     14"%ProgramFiles(x86)%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f 
    1415if ERRORLEVEL 1 ( 
    15     goto noSubWCRev 
     16    exit /b %ERRORLEVEL% 
     17) 
     18goto end 
     19 
     20:searchPath 
     21 
     22for %i in (SubWCRev.exe) do ( 
     23    if exist "%~$PATH:i" ( 
     24        "SubWCRev.exe" %1 %2 %3 -f 
     25    ) else ( 
     26        goto noSubWCRev 
     27    ) 
     28) 
     29if ERRORLEVEL 1 ( 
     30    exit /b %ERRORLEVEL% 
    1631) 
    1732 
Note: See TracChangeset for help on using the changeset viewer.