/
makesnap.bat
executable file
·46 lines (31 loc) · 951 Bytes
/
makesnap.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@ECHO OFF
REM --- Build the binary snapshot.
REM --- %1 optional; "nodll" will not add rendering and sound DLLs
ECHO ========================= MAKING BINARY SNAPSHOT ==========================
SET RAR=-m5
REM --- Pack it with RAR.
SET OUT=Out\
md %OUT%
SET SRC=
CD ..\doomsday
SET FILE=C:\Projects\deng\distrib\%OUT%ddsnapshot
del %FILE%.rar
REM --- The files
rar -ep a %FILE% %SRC%Bin\Release\Doomsday.exe %SRC%Bin\Release\jDoom.dll %SRC%Bin\Release\jHeretic.dll %SRC%Bin\Release\jHexen.dll
if "%1"=="nodll" goto skipdll
rar -ep a %FILE% %SRC%Bin\Release\drOpenGL.dll %SRC%Bin\Release\drD3D.dll %SRC%Bin\Release\dsA3D.dll %SRC%Bin\Release\dsCompat.dll
goto fileloop
:skipdll
shift
:fileloop
if "%1"=="" goto loopdone
rar a %FILE% %SRC%%1
shift
goto fileloop
:loopdone
CD ..\distrib
echo Uploading to The Mirror...
ftpscrpt -f z:\scripts\mirror-snapshot.scp
echo Uploading to Fourwinds...
ftpscrpt -f z:\scripts\snapshot.scp
echo Done.