This repository has been archived by the owner on Sep 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·145 lines (117 loc) · 2.49 KB
/
build.sh
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/bin/bash
set -e
CWD=`pwd`
build_mac64() {
echo "Building mac64 components..."
# sh build_sms.sh
sh build-lcb.sh M64
echo "Creating zip archive..."
cd $CWD/build
cd Mac
zip -qr ../lcb-Mac.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Mac
echo "Build Completed."
}
build_windows64() {
echo "Building Windows64 components..."
# sh build_sms.sh
sh build-lcb.sh W64
echo "Creating zip archive..."
cd $CWD/build
cd Win64
zip -qr ../lcb-Win64.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Win64
echo "Build Completed."
}
build_windows32() {
echo "Building Windows32 components..."
# sh build_sms.sh
sh build-lcb.sh W32
echo "Creating zip archive..."
cd $CWD/build
cd Win32
zip -qr ../lcb-Win32.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Win32
echo "Build Completed."
}
build_linux64() {
echo "Building Linux64 components..."
# sh build_sms.sh
sh build-lcb.sh L64
echo "Creating zip archive..."
cd $CWD/build
cd Linux64
zip -qr ../lcb-Linux64.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Linux64
echo "Build Completed."
}
build_linux32() {
echo "Building Linux32 components..."
# sh build_sms.sh
sh build-lcb.sh L32
echo "Creating zip archive..."
cd $CWD/build
cd Linux32
zip -qr ../lcb-Linux32.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Linux32
echo "Build Completed."
}
build_all() {
echo "Building all components..."
# sh build_sms.sh
sh build-lcb.sh
echo "Creating zip archives..."
cd $CWD/build
cd Mac
zip -qr ../lcb-Mac.zip .
cd ..
cd Win32
zip -qr ../lcb-Win32.zip .
cd ..
cd Win64
zip -qr ../lcb-Win64.zip .
cd ..
cd Linux32
zip -qr ../lcb-Linux32.zip .
cd ..
cd Linux64
zip -qr ../lcb-Linux64.zip .
cd ..
echo "Zip archives created"
echo "Removing temporary build files"
rm -r Mac Win32 Win64 Linux32 Linux64
echo "Build Completed."
}
if [ "$1" = "L32" ]
then
build_linux32
elif [ "$1" = "L64" ]
then
build_linux64
elif [ "$1" = "W32" ]
then
build_windows32
elif [ "$1" = "W64" ]
then
build_windows64
elif [ "$1" = "M64" ]
then
build_mac64
else
build_all
fi