-
Notifications
You must be signed in to change notification settings - Fork 5
/
make.sh
executable file
·41 lines (34 loc) · 1.03 KB
/
make.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
#!/bin/bash
BASE_DIR=$(cd $(dirname $0); pwd)
function mvBuild() {
mkdir -p "${BASE_DIR}/build/MonoplexKR"
mkdir -p "${BASE_DIR}/build/MonoplexKRWide"
mv -f "${BASE_DIR}/"MonoplexKRWide*.ttf "${BASE_DIR}/build/MonoplexKRWide/"
mv -f "${BASE_DIR}/"MonoplexKR*.ttf "${BASE_DIR}/build/MonoplexKR/"
}
function mvBuildNerd() {
mkdir -p "${BASE_DIR}/build/MonoplexKRNerd"
mkdir -p "${BASE_DIR}/build/MonoplexKRWideNerd"
mv -f "${BASE_DIR}/"MonoplexKRWideNerd*.ttf "${BASE_DIR}/build/MonoplexKRWideNerd/"
mv -f "${BASE_DIR}/"MonoplexKRNerd*.ttf "${BASE_DIR}/build/MonoplexKRNerd/"
rm -f "${BASE_DIR}/"MonoplexKR*.ttf
}
DEBUG_FLG='false'
while getopts d OPT
do
case $OPT in
'd' ) DEBUG_FLG='true';;
esac
done
if [ "$DEBUG_FLG" = 'true' ]; then
("${BASE_DIR}/monoplex_kr_generator.sh" -d \
&& "${BASE_DIR}/os2_patch.sh" \
&& mvBuild)
exit
fi
("${BASE_DIR}/monoplex_kr_generator.sh" -n \
&& "${BASE_DIR}/os2_patch.sh" \
&& mvBuildNerd)
("${BASE_DIR}/monoplex_kr_generator.sh" \
&& "${BASE_DIR}/os2_patch.sh" \
&& mvBuild)