Skip to content

Commit c0cf686

Browse files
committed
Merge branch 'bb/update-unicode-table'
Simplify the procedure to generate unicode table. * bb/update-unicode-table: update_unicode.sh: delete the command group update_unicode.sh: make the output structure visible update_unicode.sh: shorten uniset invocation path update_unicode.sh: set UNICODE_DIR only once update_unicode.sh: simplify output capture
2 parents 74a101e + 32c239d commit c0cf686

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

update_unicode.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ fi &&
2727
fi &&
2828
make
2929
) &&
30-
echo "static const struct interval zero_width[] = {" >$UNICODEWIDTH_H &&
31-
UNICODE_DIR=. ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
32-
grep -v plane >>$UNICODEWIDTH_H &&
33-
echo "};" >>$UNICODEWIDTH_H &&
34-
echo "static const struct interval double_width[] = {" >>$UNICODEWIDTH_H &&
35-
UNICODE_DIR=. ./uniset/uniset --32 eaw:F,W >>$UNICODEWIDTH_H &&
36-
echo "};" >>$UNICODEWIDTH_H
30+
UNICODE_DIR=. && export UNICODE_DIR &&
31+
cat >$UNICODEWIDTH_H <<-EOF
32+
static const struct interval zero_width[] = {
33+
$(uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
34+
grep -v plane)
35+
};
36+
static const struct interval double_width[] = {
37+
$(uniset/uniset --32 eaw:F,W)
38+
};
39+
EOF
3740
)

0 commit comments

Comments
 (0)