forked from yuru7/udev-gothic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.sh
executable file
·112 lines (98 loc) · 4.39 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
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
#!/bin/bash
BASE_DIR=$(cd $(dirname $0); pwd)
WORK_DIR="$BASE_DIR/build_tmp"
BUILD_DIR="$BASE_DIR/build"
VERSION='1.3.1'
FAMILYNAME="UDEVGothic"
DISP_FAMILYNAME="UDEV Gothic"
FAMILYNAME_LIGA="UDEVGothicLG"
DISP_FAMILYNAME_LIGA="UDEV Gothic LG"
FAMILYNAME_JPDOC="UDEVGothicJPDOC"
DISP_FAMILYNAME_JPDOC="UDEV Gothic JPDOC"
FAMILYNAME_NF="UDEVGothicNF"
DISP_FAMILYNAME_NF="UDEV Gothic NF"
FAMILYNAME_NF_LIGA="UDEVGothicNFLG"
DISP_FAMILYNAME_NF_LIGA="UDEV Gothic NFLG"
FAMILYNAME_35="UDEVGothic35"
DISP_FAMILYNAME_35="UDEV Gothic 35"
FAMILYNAME_LIGA_35="UDEVGothic35LG"
DISP_FAMILYNAME_LIGA_35="UDEV Gothic 35LG"
FAMILYNAME_JPDOC_35="UDEVGothic35JPDOC"
DISP_FAMILYNAME_JPDOC_35="UDEV Gothic 35JPDOC"
FAMILYNAME_NF_35="UDEVGothic35NF"
DISP_FAMILYNAME_NF_35="UDEV Gothic 35NF"
FAMILYNAME_NF_LIGA_35="UDEVGothic35NFLG"
DISP_FAMILYNAME_NF_LIGA_35="UDEV Gothic 35NFLG"
if [ ! -d "$BUILD_DIR" ]
then
mkdir "$BUILD_DIR"
fi
for italic_flag in 0 1
do
# リガチャなし版の生成
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME" "$DISP_FAMILYNAME" 0 0 0 0 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME" "" 0
"${BASE_DIR}/cmap_patch.sh" "$FAMILYNAME"
"${BASE_DIR}/copyright.sh" "$FAMILYNAME"
mv "$WORK_DIR/$FAMILYNAME"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# リガチャあり版の生成
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_LIGA" "$DISP_FAMILYNAME_LIGA" 1 0 0 0 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_LIGA" "" 0
"${BASE_DIR}/cmap_patch.sh" "$FAMILYNAME_LIGA"
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_LIGA"
mv "$WORK_DIR/$FAMILYNAME_LIGA"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# JPDOC版の生成
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_JPDOC" "$DISP_FAMILYNAME_JPDOC" 0 1 0 0 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_JPDOC" "" 0
"${BASE_DIR}/cmap_patch.sh" "$FAMILYNAME_JPDOC"
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_JPDOC"
mv "$WORK_DIR/$FAMILYNAME_JPDOC"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# Nerd Fonts版の生成 - リガチャなし
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_NF" "$DISP_FAMILYNAME_NF" 0 0 1 0 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_NF" "" 0
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_NF"
mv "$WORK_DIR/$FAMILYNAME_NF"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# Nerd Fonts版の生成 - リガチャあり
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_NF_LIGA" "$DISP_FAMILYNAME_NF_LIGA" 1 0 1 0 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_NF_LIGA" "" 0
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_NF_LIGA"
mv "$WORK_DIR/$FAMILYNAME_NF_LIGA"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# リガチャなし版の生成 (3:5幅)
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_35" "$DISP_FAMILYNAME_35" 0 0 0 1 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_35" "" 1
"${BASE_DIR}/cmap_patch.sh" "$FAMILYNAME_35"
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_35"
mv "$WORK_DIR/$FAMILYNAME_35"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# リガチャあり版の生成 (3:5幅)
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_LIGA_35" "$DISP_FAMILYNAME_LIGA_35" 1 0 0 1 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_LIGA_35" "" 1
"${BASE_DIR}/cmap_patch.sh" "$FAMILYNAME_LIGA_35"
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_LIGA_35"
mv "$WORK_DIR/$FAMILYNAME_LIGA_35"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# JPDOC版の生成 (3:5幅)
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_JPDOC_35" "$DISP_FAMILYNAME_JPDOC_35" 0 1 0 1 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_JPDOC_35" "" 1
"${BASE_DIR}/cmap_patch.sh" "$FAMILYNAME_JPDOC_35"
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_JPDOC_35"
mv "$WORK_DIR/$FAMILYNAME_JPDOC_35"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# Nerd Fonts版の生成 - リガチャなし (3:5幅)
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_NF_35" "$DISP_FAMILYNAME_NF_35" 0 0 1 1 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_NF_35" "" 1
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_NF_35"
mv "$WORK_DIR/$FAMILYNAME_NF_35"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
# Nerd Fonts版の生成 - リガチャあり (3:5幅)
"${BASE_DIR}/generator.sh" "$VERSION" "$FAMILYNAME_NF_LIGA_35" "$DISP_FAMILYNAME_NF_LIGA_35" 1 0 1 1 $italic_flag
"${BASE_DIR}/os2_patch.sh" "$FAMILYNAME_NF_LIGA_35" "" 1
"${BASE_DIR}/copyright.sh" "$FAMILYNAME_NF_LIGA_35"
mv "$WORK_DIR/$FAMILYNAME_NF_LIGA_35"*.ttf "$BUILD_DIR"
rm -rf "$WORK_DIR"
done