Subversion Repositories vaca_plus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 h266 1
@echo off
13 h266 2
 
3
set mapster32dir=%~dp0
4
set vacadir=%~dp0
5
set vacahrpdir=%~dp0
6
 
1 h266 7
:recheck
8
if not exist mapster32.exe goto mapster32check
9
:mapster32check_done
13 h266 10
set mapster32dir=%cd%
11
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
12
 
13
if exist vacation_hrp set vacahrpdir=%cd%
14
:vacadircheck
15
if exist VACATION.PRG ren VACATION.PRG vacation.grp
16
cd vaca_plus
17
set vacadir=%cd%
18
if exist vacation_hrp set vacahrpdir=%cd%
19
if exist vaca_plus goto vacadircheck
20
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%vacadir%".
21
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%vacahrpdir%".
22
 
23
cd "%mapster32dir%"
24
 
25
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
26
if exist hrp_update.zip set hrpu=-ghrp_update.zip
27
 
28
set args=-j"%vacadir%" -j"%vacahrpdir%" -hvacation.def -gvacation.grp %hrp% %hrpu% %*
29
set exe=mapster32
30
if "%debug%"=="1" set exe=mapster32.debug
31
 
32
if exist %exe%.bat (
33
call %exe%.bat %args%
34
) else (
35
%exe%.exe %args%
36
)
37
 
38
 
1 h266 39
goto end
40
 
41
:mapster32check
42
if exist mapster32.bat goto mapster32check_done
43
if exist ..\mapster32.exe (
44
cd ..
45
goto recheck
46
)
47
if exist ..\..\mapster32.exe (
48
cd ..\..
49
goto recheck
50
)
51
if exist ..\..\..\mapster32.exe (
52
cd ..\..\..
53
goto recheck
54
)
55
if exist ..\mapster32.bat (
56
cd ..
57
goto mapster32check_done
58
)
59
if exist ..\..\mapster32.bat (
60
cd ..\..
61
goto mapster32check_done
62
)
63
if exist ..\..\..\mapster32.bat (
64
cd ..\..\..
65
goto mapster32check_done
66
)
67
echo Warning: You don't have Mapster32 in your directory.
68
goto mapster32check_done
69
 
13 h266 70
:end