Rev 57 | Rev 59 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 57 | Rev 58 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | @echo off |
1 | |
2 | @color 0C |
2 | @color 0C |
3 | pushd "%~dp0" |
3 | pushd "%~dp0" |
- | 4 | set startdir=%cd% |
|
4 | 5 | ||
5 | :restart |
6 | :restart |
6 | title Duke Caribbean: Life's A Beach Plus Launcher |
7 | title Duke Caribbean: Life's A Beach Plus Launcher |
7 | if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher |
8 | if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher |
8 | 9 | ||
9 | set exedir=%~dp0 |
10 | set exedir=%startdir% |
10 | set addondir=%~dp0 |
11 | set addondir=%startdir% |
11 | set addonhrpdir=%~dp0 |
12 | set addonhrpdir=%startdir% |
12 | 13 | ||
13 | set exename=eduke32 |
14 | set exename=eduke32 |
14 | set exeproper=EDuke32 |
15 | set exeproper=EDuke32 |
15 | set action=playing |
16 | set action=playing |
16 | 17 | ||
Line 150... | Line 151... | ||
150 | start %exe%.exe %args% |
151 | start %exe%.exe %args% |
151 | if "%debug%"=="1" echo DEBUG: Final Command Line: start %exe%.exe %args% |
152 | if "%debug%"=="1" echo DEBUG: Final Command Line: start %exe%.exe %args% |
152 | ) |
153 | ) |
153 | 154 | ||
154 | set svnpath=0 |
155 | set svnpath=0 |
155 | if "%svnpath%"=="0" if exist "%~dp0\svn\bin\svn.exe" set svnpath=%~dp0\svn\bin |
156 | if "%svnpath%"=="0" if exist "%startdir%\svn\bin\svn.exe" set svnpath=%startdir%\svn\bin |
156 | if "%svnpath%"=="0" if exist "%exedir%\svn\bin\svn.exe" set svnpath=%exedir%\svn\bin |
157 | if "%svnpath%"=="0" if exist "%exedir%\svn\bin\svn.exe" set svnpath=%exedir%\svn\bin |
157 | if "%svnpath%"=="0" if exist "%ProgramFiles%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles%\SlikSvn\bin |
158 | if "%svnpath%"=="0" if exist "%ProgramFiles%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles%\SlikSvn\bin |
158 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\SlikSvn\bin |
159 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\SlikSvn\bin |
159 | if "%svnpath%"=="0" if exist "%ProgramFiles%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles%\Subversion\bin |
160 | if "%svnpath%"=="0" if exist "%ProgramFiles%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles%\Subversion\bin |
160 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\Subversion\bin |
161 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\Subversion\bin |
161 | if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin |
162 | if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin |
162 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin |
163 | if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin |
163 | if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S |
164 | if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S |
164 | 165 | ||
165 | chdir /d "%addondir%" |
166 | chdir /d "%addondir%" |
166 | if not "%svnpath%"=="0" if exist ".svn" "%svnpath%\svn.exe" update |
167 | if not "%svnpath%"=="0" if exist ".svn" call :svn_action |
167 | chdir /d "%addonhrpdir%" |
168 | chdir /d "%addonhrpdir%" |
168 | if not "%svnpath%"=="0" if exist ".svn" "%svnpath%\svn.exe" update |
169 | if not "%svnpath%"=="0" if exist ".svn" call :svn_action |
169 | 170 | ||
170 | goto end |
171 | goto end |
171 | 172 | ||
- | 173 | :svn_action |
|
- | 174 | set PATH=%PATH%;%svnpath% |
|
- | 175 | for /f "delims=" %%a in ('svnversion.exe .') do @set oldrev=%%a |
|
- | 176 | "svn.exe" update |
|
- | 177 | for /f "delims=" %%a in ('svnversion.exe .') do @set rev=%%a |
|
- | 178 | if %rev% EQU %oldrev% goto :eof |
|
- | 179 | set /a oldrev=%oldrev% + 1 |
|
- | 180 | echo. |
|
- | 181 | "svn.exe" log -r %oldrev%:%rev% |
|
- | 182 | echo. |
|
- | 183 | pause |
|
- | 184 | goto :eof |
|
- | 185 | ||
172 | :novacagrp |
186 | :novacagrp |
173 | echo. |
187 | echo. |
174 | echo Error: You don't have VACATION.GRP in your directory. |
188 | echo Error: You don't have VACATION.GRP in your directory. |
175 | echo. |
189 | echo. |
176 | goto ssicheck |
190 | goto ssicheck |
Line 313... | Line 327... | ||
313 | if not exist "%addondir%\utils\windows\win32\sha1sum.exe" ( |
327 | if not exist "%addondir%\utils\windows\win32\sha1sum.exe" ( |
314 | echo "%addondir%\utils\windows\win32\sha1sum.exe" not found. |
328 | echo "%addondir%\utils\windows\win32\sha1sum.exe" not found. |
315 | goto :eof |
329 | goto :eof |
316 | ) |
330 | ) |
317 | pushd . |
331 | pushd . |
318 | if exist "%addondir%\%vacagrpname%" cd /d %addondir% |
332 | if exist "%addondir%\%vacagrpname%" chdir /d %addondir% |
319 | if exist "%exedir%\%vacagrpname%" cd /d %exedir% |
333 | if exist "%exedir%\%vacagrpname%" chdir /d %exedir% |
320 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *%vacagrpname% | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
334 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *%vacagrpname% | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
321 | if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof |
335 | if "%ERRORLEVEL%"=="0" set version=full && popd && goto :eof |
322 | if "%ERRORLEVEL%"=="1" set version=unknown |
336 | if "%ERRORLEVEL%"=="1" set version=unknown |
323 | popd |
337 | popd |
324 | goto :eof |
338 | goto :eof |
Line 568... | Line 582... | ||
568 | 582 | ||
569 | :execheck |
583 | :execheck |
570 | if exist %exename%.bat goto execheck_done |
584 | if exist %exename%.bat goto execheck_done |
571 | if exist %exename%.exe goto recheck |
585 | if exist %exename%.exe goto recheck |
572 | set prevdir=%cd% |
586 | set prevdir=%cd% |
573 | if not "%cd%"=="%cd:~0,3%" cd .. |
587 | if not "%cd%"=="%cd:~0,3%" chdir .. |
574 | if not "%cd%"=="%prevdir%" goto execheck |
588 | if not "%cd%"=="%prevdir%" goto execheck |
575 | echo Warning: You don't have %exeproper% in your directory. |
589 | echo Warning: You don't have %exeproper% in your directory. |
576 | chdir /d "%~dp0" |
590 | chdir /d "%startdir%" |
577 | goto execheck_done |
591 | goto execheck_done |
578 | 592 | ||
579 | :nodir |
593 | :nodir |
580 | echo. |
594 | echo. |
581 | echo Error: "vaca_plus" data directory not found. |
595 | echo Error: "vaca_plus" data directory not found. |