From mboxrd@z Thu Jan 1 00:00:00 1970 From: dev+git@drbeat.li Subject: [PATCH 1/5] update_unicode.sh: simplify output capture Date: Fri, 19 Dec 2014 15:39:27 +0100 Message-ID: <1418999971-21548-1-git-send-email-dev+git@drbeat.li> Cc: tboegi@web.de, Beat Bolli To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Dec 19 15:47:46 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y1yqG-0001bY-LG for gcvg-git-2@plane.gmane.org; Fri, 19 Dec 2014 15:47:45 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752240AbaLSOri (ORCPT ); Fri, 19 Dec 2014 09:47:38 -0500 Received: from smtp1.mail.fcom.ch ([212.60.46.170]:51443 "EHLO smtp1.mail.fcom.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbaLSOrh (ORCPT ); Fri, 19 Dec 2014 09:47:37 -0500 Received: from drbeat.li (178-241-153-5.dyn.cable.fcom.ch [5.153.241.178]) by smtp1.mail.fcom.ch (Postfix) with ESMTP id 9D41E21547; Fri, 19 Dec 2014 15:40:13 +0100 (CET) Received: by drbeat.li (Postfix, from userid 1000) id 22FBE20949; Fri, 19 Dec 2014 15:40:13 +0100 (CET) X-Mailer: git-send-email 2.1.3 X-Virus-Scanned: clamav-milter 0.98.4 at smtp1.mail.fcom.ch X-Virus-Status: Clean Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: From: Beat Bolli 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 --- update_unicode.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/update_unicode.sh b/update_unicode.sh index 000b937..c1c876c 100755 --- a/update_unicode.sh +++ b/update_unicode.sh @@ -26,12 +26,13 @@ fi && ./configure --enable-warnings=-Werror CFLAGS='-O0 -ggdb' fi && make - ) && - echo "static const struct interval zero_width[] = {" >$UNICODEWIDTH_H && - UNICODE_DIR=. ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD | - grep -v plane >>$UNICODEWIDTH_H && - echo "};" >>$UNICODEWIDTH_H && - echo "static const struct interval double_width[] = {" >>$UNICODEWIDTH_H && - UNICODE_DIR=. ./uniset/uniset --32 eaw:F,W >>$UNICODEWIDTH_H && - echo "};" >>$UNICODEWIDTH_H + ) && { + echo "static const struct interval zero_width[] = {" && + UNICODE_DIR=. ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD | + grep -v plane && + echo "};" && + echo "static const struct interval double_width[] = {" && + UNICODE_DIR=. ./uniset/uniset --32 eaw:F,W && + echo "};" + } >$UNICODEWIDTH_H ) -- 2.1.3