Subversion Repositories vaca_plus

Rev

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

Rev 13 Rev 15
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 vacation_hrp set vacahrpdir=%cd%
13
if exist vacation\ set vacahrpdir=%cd%
14
:vacadircheck
14
:vacadircheck
15
if exist VACATION.PRG ren VACATION.PRG vacation.grp
15
if exist VACATION.PRG ren VACATION.PRG vacation.grp
16
cd vaca_plus
16
cd vaca_plus
17
set vacadir=%cd%
17
set vacadir=%cd%
18
if exist vacation_hrp set vacahrpdir=%cd%
18
if exist vacation\ set vacahrpdir=%cd%
19
if exist vaca_plus goto vacadircheck
19
if exist vaca_plus\ goto vacadircheck
20
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%vacadir%".
20
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%vacadir%".
21
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%vacahrpdir%".
21
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%vacahrpdir%".
22
 
22
 
23
cd "%mapster32dir%"
23
cd "%mapster32dir%"
24
 
24
 
25
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
25
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
26
if exist hrp_update.zip set hrpu=-ghrp_update.zip
26
if exist hrp_update.zip set hrpu=-ghrp_update.zip
27
 
27
 
-
 
28
type "%mapster32dir%\names.h" > "%mapster32dir%\VacaNames.h"
-
 
29
echo. >> "%mapster32dir%\VacaNames.h"
-
 
30
type "%vacadir%\VacaNames.def" >> "%mapster32dir%\VacaNames.h"
-
 
31
 
-
 
32
set args=
-
 
33
if exist "%vacadir%" set args=%args% -j"%vacadir:\=/%"
-
 
34
if exist "%vacahrpdir%" set args=%args% -j"%vacahrpdir:\=/%"
28
set args=-j"%vacadir%" -j"%vacahrpdir%" -hvacation.def -gvacation.grp %hrp% %hrpu% %*
35
set args=%args% -namesfile VacaNames.h -hvacation.def -gvacation.grp %hrp% %hrpu% %*
-
 
36
 
29
set exe=mapster32
37
set exe=mapster32
30
if "%debug%"=="1" set exe=mapster32.debug
38
if "%debug%"=="1" set exe=mapster32.debug
31
 
39
 
32
if exist %exe%.bat (
40
if exist %exe%.bat (
33
call %exe%.bat %args%
41
call %exe%.bat %args%