Rev 60 | Rev 68 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 60 | Rev 67 | ||
---|---|---|---|
Line 163... | Line 163... | ||
163 | if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin |
163 | if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin |
164 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin |
164 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin |
165 | if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S |
165 | if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S |
166 | 166 | ||
167 | chdir /d "%addondir%" |
167 | chdir /d "%addondir%" |
168 | if not "%svnpath%"=="0" if exist ".svn" call :svn_action |
168 | if not "%svnpath%"=="0" call :svn_action |
169 | chdir /d "%addonhrpdir%" |
169 | chdir /d "%addonhrpdir%" |
170 | if not "%svnpath%"=="0" if exist ".svn" call :svn_action |
170 | if not "%svnpath%"=="0" call :svn_action |
171 | 171 | ||
172 | goto end |
172 | goto end |
173 | 173 | ||
174 | :svn_action |
174 | :svn_action |
175 | set PATH=%PATH%;%svnpath% |
175 | set PATH=%PATH%;%svnpath% |
176 | for /f "delims=" %%a in ('svnversion.exe .') do @set oldrev=%%a |
176 | for /f "delims=" %%a in ('svnversion.exe .') do @set oldrev=%%a |
- | 177 | if "%oldrev%"=="exported" goto :eof |
|
- | 178 | if "%oldrev%"=="Unversioned directory" goto :eof |
|
177 | "svn.exe" update |
179 | "svn.exe" update |
178 | for /f "delims=" %%a in ('svnversion.exe .') do @set rev=%%a |
180 | for /f "delims=" %%a in ('svnversion.exe .') do @set rev=%%a |
179 | if %rev% EQU %oldrev% goto :eof |
181 | if %rev% EQU %oldrev% goto :eof |
180 | set /a oldrev=%oldrev% + 1 |
182 | set /a oldrev=%oldrev% + 1 |
181 | echo. |
183 | echo. |