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 <dev+git@drbeat.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Beat Bolli committed
Dec 19, 2014 at 17:24 UTC
1679acdbff6443e07cd880048598d8de45663370
1 file changed
+9
-7
update_unicode.sh
+9
-7
@@ -28,12 +28,14 @@ fi &&
28
make
29
) && {
30
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
40
} >$UNICODEWIDTH_H
41
)