Skip to content

Commit 1679acd

Browse files
bbolligitster
authored andcommitted
update_unicode.sh: make the output structure visible
By using a here document instead of the echo/uniset sequence, the final structure of the generated file becomes obvious. Signed-off-by: Beat Bolli <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a77c20 commit 1679acd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

update_unicode.sh

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

0 commit comments

Comments
 (0)