-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.bat
86 lines (65 loc) · 1.24 KB
/
make.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@echo off
setlocal enabledelayedexpansion
set "build_all="
set /a build_count=1
set build_lang=%1
set build_max=2
set build_next=""
set english_lang=en
set portuguese_lang=pt
if not defined build_lang (
set "build_all=true"
set build_next=%english_lang%
goto pre-build
)
if %build_lang% == %english_lang% (
set build_next=%english_lang%
goto pre-build
)
if %build_lang% == %portuguese_lang% (
set build_next=%portuguese_lang%
goto pre-build
) else (
echo Invalid language parameter!
echo:
goto :common-exit
)
:pre-build
echo Starting build of %build_next% version...
echo:
pushd %~dp0\src\%build_next%
goto :build
:build
echo Cleaning previous build...
echo:
ablog clean
echo:
echo Clean finished.
echo:
echo Build started...
echo:
ablog build
echo:
echo Build finished.
echo:
popd
if defined build_all (
if !build_count! == %build_max% (
echo All the available builds finished.
echo:
goto :common-exit
)
set /a "build_count=!build_count!+1"
echo Going to the build number !build_count!
echo:
if !build_count! == 2 (
set build_next=%portuguese_lang%
goto pre-build
)
) else (
goto common-exit
)
:common-exit
echo:
echo Exiting...
exit