/
postbuild.bat
62 lines (47 loc) · 1.5 KB
/
postbuild.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
SETLOCAL EnableDelayedExpansion
if not exist %1 (
goto :eof
)
cd %1
if not exist %2\bin\%3\libmysql.dll (
xcopy %1\deps\src\mysql-connector-c\libmysql\%3\libmysql.dll %2\bin\%3\ /I /Y /s
)
if not exist %2\bin\%3\mysqlcppconn.dll (
xcopy %1\deps\src\mysql-connector-cpp\driver\%3\mysqlcppconn.dll %2\bin\%3\ /I /Y /s
)
if %3 == "Debug" (
if not exist %2\bin\%3\tbb_debug.dll (
xcopy %1\deps\src\tbb\build\vc12\ia32\%3\tbb_debug.dll %2\bin\%3\ /I /Y /s
xcopy %1\deps\src\tbb\build\vc12\ia32\%3\tbbmalloc_debug.dll %2\bin\%3\ /I /Y /s
)
if not exist %2\bin\%3\zlibd.dll (
xcopy %1\deps\src\zlib\%3\zlibd.dll %2\bin\%3\ /I /Y /s
)
)
if %3 == "Release" (
if not exist %2\bin\%3\tbb.dll (
xcopy %1\deps\src\tbb\build\vc12\ia32\%3\tbb.dll %2\bin\%3\ /I /Y /s
xcopy %1\deps\src\tbb\build\vc12\ia32\%3\tbbmalloc.dll %2\bin\%3\ /I /Y /s
)
if not exist %2\bin\%3\zlib.dll (
xcopy %1\deps\src\zlib\%3\zlib.dll %2\bin\%3\ /I /Y /s
)
)
if not exist %2\bin\%3\config (
xcopy %1\data\config\*.cfg %2\bin\%3\config\ /I /Y /s
)
if not exist %2\bin\%3\heightmaps (
if exist %1\data\heightmaps (
xcopy %1\data\heightmaps\*.hmpw %2\bin\%3\heightmaps\ /I /Y /s
)
)
if not exist %2\bin\%3\logs (
mkdir %2\bin\%3\logs
)
if not exist %2\bin\%3\script (
xcopy %1\data\script %2\bin\%3\script\ /I /Y /s
)
xcopy %1\data\ServerStart.bat %2\bin\%3\ /I /Y /s
%1"\tools\windows\gitversion.exe" > %2"\bin\%3\VERSION"
ENDLOCAL