2
REM This batch file can be used to build the target directories "dist" and "debug" one layer
3
REM up from here where the release and debug binaries will be compiled to.
7
SET LIBS_DIR=..\..\winlibs
9
SET DEBUG_DIR_BASE=debug
10
SET DIST_DIR=..\..\%DIST_DIR_BASE%
11
SET DEBUG_DIR=..\..\%DEBUG_DIR_BASE%
13
echo making directory...
14
REM del %DIST_DIR% /S /Q
15
REM del %DEBUG_DIR% /S /Q
20
echo Your personal configuration will be stored here. Updates will never touch this directory. > %DIST_DIR%\var\README.txt
22
echo generating version.h...
23
for /f "tokens=1-5 delims=:" %%d in ("%time%") do set var=%date:~10,4%%date:~4,2%%date:~7,2%
25
set datetimestr=%var: =0%
26
echo _alpha%datetimestr% > %AA_DIR%/version.h
29
xcopy %AA_DIR%\arenas %DIST_DIR%\arenas /I /E /Y
30
xcopy %AA_DIR%\config %DIST_DIR%\config /I /E /Y
31
xcopy %AA_DIR%\doc %DIST_DIR%\doc /I /E /Y
32
xcopy %AA_DIR%\language %DIST_DIR%\language /I /E /Y
33
xcopy %AA_DIR%\models %DIST_DIR%\models /I /E /Y
34
xcopy %AA_DIR%\music %DIST_DIR%\music /I /E /Y
35
xcopy %AA_DIR%\sound %DIST_DIR%\sound /I /E /Y
36
md %DIST_DIR%\resource
37
xcopy %AA_DIR%\resource\proto %DIST_DIR%\resource\included /I /E /Y
38
xcopy %AA_DIR%\resource\included %DIST_DIR%\resource\included /I /E /Y
39
xcopy %AA_DIR%\batch\make\sortresources.py %DIST_DIR%\resource\included /I /E /Y
40
xcopy %AA_DIR%\textures %DIST_DIR%\textures /I /E /Y
41
xcopy %AA_DIR%\*.txt %DIST_DIR% /I /Y
42
copy %AA_DIR%\README %DIST_DIR%\README.txt /Y
43
copy %AA_DIR%\README-SDL %DIST_DIR%\README-SDL.txt /Y
44
rename %DIST_DIR%\config\aiplayers.cfg.in aiplayers.cfg
45
rename %DIST_DIR%\language\languages.txt.in languages.txt
47
echo copying binary only dlls ( WATCH FOR ERRORS! )...
48
xcopy %LIBS_DIR%\SDL_image\VisualC\graphics\lib\*.dll %DIST_DIR% /Y
49
xcopy %LIBS_DIR%\libxml2\lib\*.dll %DIST_DIR% /Y
50
xcopy %LIBS_DIR%\iconv\lib\*.dll %DIST_DIR% /Y
52
echo copying installation files...
53
cd %AA_DIR%\win32\required
54
xcopy *.nsi %DIST_DIR%\ /Y
55
xcopy *.bat %DIST_DIR%\ /Y
56
xcopy *.bmp %DIST_DIR%\ /Y
57
xcopy *.url %DIST_DIR%\ /Y
61
cd %DIST_DIR%\resource\included
66
xcopy %DIST_DIR_BASE% %DEBUG_DIR_BASE% /I /E /Y