Subversion Repositories nw_plus

Rev

Rev 1 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 13
Line 1... Line 1...
1
@echo off
1
@echo off
-
 
2
 
-
 
3
set mapster32dir=%~dp0
-
 
4
set nwdir=%~dp0
-
 
5
set nwhrpdir=%~dp0
-
 
6
 
2
:recheck
7
:recheck
3
if not exist mapster32.exe goto mapster32check
8
if not exist mapster32.exe goto mapster32check
4
:mapster32check_done
9
:mapster32check_done
-
 
10
set mapster32dir=%cd%
-
 
11
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
-
 
12
 
-
 
13
if exist nwinter_hrp set nwhrpdir=%cd%
-
 
14
:nwdircheck
-
 
15
cd nw_plus
-
 
16
set nwdir=%cd%
-
 
17
if exist nwinter_hrp set nwhrpdir=%cd%
-
 
18
if exist nw_plus goto nwdircheck
-
 
19
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%".
-
 
20
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%".
-
 
21
 
-
 
22
cd "%mapster32dir%"
-
 
23
 
-
 
24
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
-
 
25
if exist hrp_update.zip set hrpu=-ghrp_update.zip
-
 
26
 
5
start mapster32 /jnw_plus -hnwinter.def -gNWINTER.GRP %*
27
set args=-j"%nwdir%" -j"%nwhrpdir%" -hnwinter.def -gnwinter.grp %hrp% %hrpu% %*
-
 
28
set exe=mapster32
-
 
29
if "%debug%"=="1" set exe=mapster32.debug
-
 
30
 
-
 
31
if exist %exe%.bat (
-
 
32
call %exe%.bat %args%
-
 
33
) else (
-
 
34
%exe%.exe %args%
-
 
35
)
-
 
36
 
6
goto end
37
goto end
7
 
38
 
8
:mapster32check
39
:mapster32check
9
if exist mapster32.bat goto mapster32check_done
40
if exist mapster32.bat goto mapster32check_done
10
if exist ..\mapster32.exe (
41
if exist ..\mapster32.exe (