Subversion Repositories nw_plus

Rev

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

Rev 13 Rev 16
Line 8... Line 8...
8
if not exist mapster32.exe goto mapster32check
8
if not exist mapster32.exe goto mapster32check
9
:mapster32check_done
9
:mapster32check_done
10
set mapster32dir=%cd%
10
set mapster32dir=%cd%
11
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
11
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
12
 
12
 
13
if exist nwinter_hrp set nwhrpdir=%cd%
13
if exist nwinter\ set nwhrpdir=%cd%
14
:nwdircheck
14
:nwdircheck
15
cd nw_plus
15
cd nw_plus
16
set nwdir=%cd%
16
set nwdir=%cd%
17
if exist nwinter_hrp set nwhrpdir=%cd%
17
if exist nwinter\ set nwhrpdir=%cd%
18
if exist nw_plus goto nwdircheck
18
if exist nw_plus\ goto nwdircheck
19
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%".
19
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%".
20
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%".
20
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%".
21
 
21
 
22
cd "%mapster32dir%"
22
cd "%mapster32dir%"
23
 
23
 
24
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
24
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
25
if exist hrp_update.zip set hrpu=-ghrp_update.zip
25
if exist hrp_update.zip set hrpu=-ghrp_update.zip
26
 
26
 
-
 
27
type "%mapster32dir%\names.h" > "%mapster32dir%\NWNames.h"
-
 
28
echo. >> "%mapster32dir%\NWNames.h"
-
 
29
type "%nwdir%\NWNames.def" >> "%mapster32dir%\NWNames.h"
-
 
30
 
-
 
31
set args=
-
 
32
if exist "%nwdir%" set args=%args% -j"%nwdir:\=/%"
-
 
33
if exist "%nwhrpdir%" set args=%args% -j"%nwhrpdir:\=/%"
27
set args=-j"%nwdir%" -j"%nwhrpdir%" -hnwinter.def -gnwinter.grp %hrp% %hrpu% %*
34
set args=%args% -namesfile NWNames.h -hnwinter.def -gnwinter.grp %hrp% %hrpu% %*
-
 
35
 
28
set exe=mapster32
36
set exe=mapster32
29
if "%debug%"=="1" set exe=mapster32.debug
37
if "%debug%"=="1" set exe=mapster32.debug
30
 
38
 
31
if exist %exe%.bat (
39
if exist %exe%.bat (
32
call %exe%.bat %args%
40
call %exe%.bat %args%