Skip to content

Commit fef54f3

Browse files
bbolligitster
authored andcommitted
update_unicode.sh: automatically download newer definition files
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. Reviewed-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Beat Bolli <dev+git@drbeat.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3f0a386 commit fef54f3

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

contrib/update-unicode/update_unicode.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
cd "$(dirname "$0")"
99
UNICODEWIDTH_H=$(git rev-parse --show-toplevel)/unicode_width.h
1010

11-
if ! test -f UnicodeData.txt; then
12-
wget http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt
13-
fi &&
14-
if ! test -f EastAsianWidth.txt; then
15-
wget http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt
16-
fi &&
11+
wget -N http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt \
12+
http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt &&
1713
if ! test -d uniset; then
1814
git clone https://github.com/depp/uniset.git &&
1915
( cd uniset && git checkout 4b186196dd )

0 commit comments

Comments
 (0)