From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 50A13203EA for ; Sat, 3 Dec 2016 13:21:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752026AbcLCNTn (ORCPT ); Sat, 3 Dec 2016 08:19:43 -0500 Received: from mx1.2b3w.ch ([92.42.186.250]:35517 "EHLO mx1.2b3w.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbcLCNTm (ORCPT ); Sat, 3 Dec 2016 08:19:42 -0500 Received: from mx1.2b3w.ch (localhost [127.0.0.1]) by mx1.2b3w.ch (Postfix) with ESMTP id 06F1DC3484; Sat, 3 Dec 2016 14:19:39 +0100 (CET) Received: from drbeat.li (215-243-153-5.dyn.cable.fcom.ch [5.153.243.215]) by mx1.2b3w.ch (Postfix) with ESMTPSA id D4B94C3472; Sat, 3 Dec 2016 14:19:38 +0100 (CET) Received: by drbeat.li (Postfix, from userid 1000) id AB3D3201A2; Sat, 3 Dec 2016 14:19:38 +0100 (CET) From: Beat Bolli To: git@vger.kernel.org Cc: Beat Bolli , =?UTF-8?q?Torsten=20B=C3=B6gershausen?= Subject: [PATCH v3 1/3] update-unicode.sh: automatically download newer definition files Date: Sat, 3 Dec 2016 14:19:31 +0100 Message-Id: <1480771173-731-1-git-send-email-dev+git@drbeat.li> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1480762392-28731-3-git-send-email-dev+git@drbeat.li> References: <1480762392-28731-3-git-send-email-dev+git@drbeat.li> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Checking just for the unicode data files' existence is not sufficient; we should also download them if a newer version exists on the Unicode consortium's servers. Option -N of wget does this nicely for us. Cc: Torsten Bögershausen Signed-off-by: Beat Bolli --- Diff to v2: - reorder the commits: fix all of update-unicode.sh first, then regenerate unicode_width.h only once update_unicode.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/update_unicode.sh b/update_unicode.sh index 27af77c..3c84270 100755 --- a/update_unicode.sh +++ b/update_unicode.sh @@ -10,12 +10,8 @@ if ! test -d unicode; then mkdir unicode fi && ( cd unicode && - if ! test -f UnicodeData.txt; then - wget http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt - fi && - if ! test -f EastAsianWidth.txt; then - wget http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt - fi && + wget -N http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt \ + http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt && if ! test -d uniset; then git clone https://github.com/depp/uniset.git fi && -- 2.7.2