update_unicode.sh: simplify output capture
Instead of capturing the output of each echo and uniset invocation, wrap the whole section in a group command and redirect its output all at once. 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
2aa590cb0761818fec9198ba4a1854310e1e0bf1
1 file changed
+9
-8
update_unicode.sh
+9
-8
@@ -26,12 +26,13 @@ fi &&
26
./configure --enable-warnings=-Werror CFLAGS='-O0 -ggdb'
27
fi &&
28
make
29
- ) &&
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
29
+ ) && {
30
+ echo "static const struct interval zero_width[] = {" &&
31
+ UNICODE_DIR=. ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
32
+ grep -v plane &&
33
+ echo "};" &&
34
+ echo "static const struct interval double_width[] = {" &&
35
+ UNICODE_DIR=. ./uniset/uniset --32 eaw:F,W &&
36
+ echo "};"
37
+ } >$UNICODEWIDTH_H
38
)