Subversion Repositories nw_plus

Rev

Rev 58 | Rev 63 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 62
Line 158... Line 158...
158
if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin
158
if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin
159
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin
159
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin
160
if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S
160
if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S
161
 
161
 
162
chdir /d "%addondir%"
162
chdir /d "%addondir%"
163
if not "%svnpath%"=="0" if exist ".svn" call :svn_action
163
if not "%svnpath%"=="0" call :svn_action
164
chdir /d "%addonhrpdir%"
164
chdir /d "%addonhrpdir%"
165
if not "%svnpath%"=="0" if exist ".svn" call :svn_action
165
if not "%svnpath%"=="0" call :svn_action
166
 
166
 
167
goto end
167
goto end
168
 
168
 
169
:svn_action
169
:svn_action
170
set PATH=%PATH%;%svnpath%
170
set PATH=%PATH%;%svnpath%
171
for /f "delims=" %%a in ('svnversion.exe .') do @set oldrev=%%a
171
for /f "delims=" %%a in ('svnversion.exe .') do @set oldrev=%%a
-
 
172
if "%oldrev%"=="exported" goto :eof
-
 
173
if "%oldrev%"=="Unversioned directory" goto :eof
172
"svn.exe" update
174
"svn.exe" update
173
for /f "delims=" %%a in ('svnversion.exe .') do @set rev=%%a
175
for /f "delims=" %%a in ('svnversion.exe .') do @set rev=%%a
174
if %rev% EQU %oldrev% goto :eof
176
if %rev% EQU %oldrev% goto :eof
175
set /a oldrev=%oldrev% + 1
177
set /a oldrev=%oldrev% + 1
176
echo.
178
echo.