-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-themes-all.sh
executable file
·241 lines (209 loc) · 8.95 KB
/
build-themes-all.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
source build-base.sh
# Noto Font CJK: 1 = Build , 0 = None
# * Noto Sans CJK
# * Noto Sans Mono CJK
# * Noto Serif CJK
export BUILD_FONT_FS_SANS=1
export BUILD_FONT_FS_SANSMONO=1
export BUILD_FONT_FS_SERIF=1
# Languages: 1 = Build , 0 = None
# * SC (Simplified Chinese)
# * TC (Traditional Chinese)
# * HK (Hong Kong)
# * JP (Japanese)
# * KR (Korean)
export BUILD_FONT_LANG_SC=1
export BUILD_FONT_LANG_TC=1
export BUILD_FONT_LANG_HK=1
export BUILD_FONT_LANG_JP=1
export BUILD_FONT_LANG_KR=1
export PATH=`pwd`:$PATH
# build-theme-fs-lang.sh input parameter
# $1 export FONT_FAM_U="Sans Mono"
# $2 export FONT_FAM_F="SansMono"
# $3 export FONT_FAM_L=sansmono
# $4 export FONT_LANG_U=TC
# $5 export FONT_LANG_L=tc
# $6 export SRC_ZIP_FILE=$6
# $7 export SRC_BASE_URL=$7
export B_SRC_BASE_URL=$SRC_CJK_FONTS_URL
if [ $BUILD_FONT_FS_SANS -eq 1 ]
then
echo "BUILD FONT - NOTO SANS CJK START"
export B_FONT_FAM_U="Sans"
export B_FONT_FAM_F="Sans"
export B_FONT_FAM_L="sans"
if [ $BUILD_FONT_LANG_HK -eq 1 ]
then
echo "BUILD FONT LANG- HK"
export B_FONT_LANG_U=HK
export B_FONT_LANG_L=hk
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_JP -eq 1 ]
then
echo "BUILD FONT LANG- JP"
export B_FONT_LANG_U=JP
export B_FONT_LANG_L=jp
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_KR -eq 1 ]
then
echo "BUILD FONT LANG- KR"
export B_FONT_LANG_U=KR
export B_FONT_LANG_L=kr
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_SC -eq 1 ]
then
echo "BUILD FONT LANG- SC"
export B_FONT_LANG_U=SC
export B_FONT_LANG_L=sc
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_TC -eq 1 ]
then
echo "BUILD FONT LANG- TC"
export B_FONT_LANG_U=TC
export B_FONT_LANG_L=tc
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
echo "BUILD FONT - NOTO SANS CJK END"
fi
echo "#####"
echo ""
if [ $BUILD_FONT_FS_SANSMONO -eq 1 ]
then
echo "BUILD FONT - NOTO SANS MONO CJK START"
export B_FONT_FAM_U="Sans Mono"
export B_FONT_FAM_F="SansMono"
export B_FONT_FAM_L="sansmono"
if [ $BUILD_FONT_LANG_HK -eq 1 ]
then
echo "BUILD FONT LANG- HK"
export B_FONT_LANG_U=HK
export B_FONT_LANG_L=hk
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_JP -eq 1 ]
then
echo "BUILD FONT LANG- JP"
export B_FONT_LANG_U=JP
export B_FONT_LANG_L=jp
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_KR -eq 1 ]
then
echo "BUILD FONT LANG- KR"
export B_FONT_LANG_U=KR
export B_FONT_LANG_L=kr
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_SC -eq 1 ]
then
echo "BUILD FONT LANG- SC"
export B_FONT_LANG_U=SC
export B_FONT_LANG_L=sc
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_TC -eq 1 ]
then
echo "BUILD FONT LANG- TC"
export B_FONT_LANG_U=TC
export B_FONT_LANG_L=tc
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
echo "BUILD FONT - NOTO SANS MONO CJK END"
fi
echo "#####"
echo ""
if [ $BUILD_FONT_FS_SERIF -eq 1 ]
then
echo "BUILD FONT - NOTO SERIF CJK START"
export B_FONT_FAM_U="Serif"
export B_FONT_FAM_F="Serif"
export B_FONT_FAM_L="serif"
if [ $BUILD_FONT_LANG_HK -eq 1 ]
then
echo "BUILD FONT LANG- HK"
export B_FONT_LANG_U=HK
export B_FONT_LANG_L=hk
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_JP -eq 1 ]
then
echo "BUILD FONT LANG- JP"
export B_FONT_LANG_U=JP
export B_FONT_LANG_L=jp
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_KR -eq 1 ]
then
echo "BUILD FONT LANG- KR"
export B_FONT_LANG_U=KR
export B_FONT_LANG_L=kr
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_SC -eq 1 ]
then
echo "BUILD FONT LANG- SC"
export B_FONT_LANG_U=SC
export B_FONT_LANG_L=sc
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
if [ $BUILD_FONT_LANG_TC -eq 1 ]
then
echo "BUILD FONT LANG- TC"
export B_FONT_LANG_U=TC
export B_FONT_LANG_L=tc
export B_SRC_ZIP_FILE=Noto${B_FONT_FAM_F}CJK-${B_FONT_LANG_U}.zip
echo "build-theme-fs-lang.sh \"$B_FONT_FAM_U\" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL"
build-theme-fs-lang.sh "$B_FONT_FAM_U" $B_FONT_FAM_F $B_FONT_FAM_L $B_FONT_LANG_U $B_FONT_LANG_L $B_SRC_ZIP_FILE $B_SRC_BASE_URL
fi
echo ""
echo "BUILD FONT - NOTO SERIF CJK END"
fi
echo "#####"
echo ""