From mboxrd@z Thu Jan 1 00:00:00 1970 From: dev+git@drbeat.li Subject: [PATCH v2 1/5] update_unicode.sh: simplify output capture Date: Fri, 19 Dec 2014 17:24:20 +0100 Message-ID: <1419006264-24741-1-git-send-email-dev+git@drbeat.li> To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Dec 19 17:24:50 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 1Y20M8-0006eO-0h for gcvg-git-2@plane.gmane.org; Fri, 19 Dec 2014 17:24:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752667AbaLSQYa (ORCPT ); Fri, 19 Dec 2014 11:24:30 -0500 Received: from smtp4.mail.fcom.ch ([212.60.46.173]:54739 "EHLO smtp4.mail.fcom.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbaLSQY1 (ORCPT ); Fri, 19 Dec 2014 11:24:27 -0500 Received: from drbeat.li (178-241-153-5.dyn.cable.fcom.ch [5.153.241.178]) by smtp4.mail.fcom.ch (Postfix) with ESMTP id 9A17A20891 for ; Fri, 19 Dec 2014 17:24:26 +0100 (CET) Received: by drbeat.li (Postfix, from userid 1000) id D7E0F20949; Fri, 19 Dec 2014 17:24:24 +0100 (CET) X-Mailer: git-send-email 2.1.3 X-Virus-Scanned: clamav-milter 0.98.5 at smtp4.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