-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_minimal.bat
More file actions
82 lines (71 loc) · 1.68 KB
/
Copy pathbuild_minimal.bat
File metadata and controls
82 lines (71 loc) · 1.68 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@echo off
mkdir build-cache
cd %~dp0\build-cache
set GIT_REPO="https://github.com/covscript/"
call:git_clone covscript
cd covscript
git checkout master
git fetch
git pull --recurse-submodules
git submodule update --init
if "%1" EQU "release" (
echo Building for release...
for /f "delims=" %%x in (.\csbuild\release.txt) do git checkout %%x
) else (
echo Building for nightly...
)
cd ..
call:git_fetch covscript-regex
call:git_fetch covscript-codec
call:git_fetch covscript-process
call:call_bat covscript
set CS_DEV_PATH=%cd%\covscript\csdev
call:call_bat covscript-regex
call:call_bat covscript-codec
call:call_bat covscript-process
cd ..
rd /S /Q .\build
mkdir build
cd build-cache
xcopy /E /Y covscript\build ..\build\
xcopy /E /Y covscript\csdev ..\build\
xcopy /E /Y covscript-regex\build ..\build\
xcopy /E /Y covscript-codec\build ..\build\
xcopy /E /Y covscript-process\build ..\build\
cd ..
if exist .\misc\cert\ (
cd .\misc\bin
call sign.bat ..\cert\covscript ..\..\build\bin\*.exe
cd ..\..
)
.\build\bin\cs -i .\build\imports .\misc\parallel_build.csc .\misc\parallel_config_minimal.json
cd build-cache
xcopy /E /Y covscript-curl\build ..\build\
xcopy /E /Y cspkg\build ..\build\
xcopy /E /Y ecs\build\ ..\build\
cd ..
if "%1" NEQ "release" (
.\build\bin\cs -i .\build\imports .\misc\replace_source.csc .\build\bin\cspkg
)
goto:eof
:call_bat
cd %1
call csbuild\make.bat
cd ..
goto:eof
:git_clone
if not exist %1 (
git clone %GIT_REPO%/%1 --recurse-submodules
)
goto:eof
:git_fetch
if exist %1 (
cd %1
git fetch
git pull
git submodule update --init --recursive
cd ..
) else (
git clone %GIT_REPO%/%1 --depth=1 --recurse-submodules
)
goto:eof