diff options
author | Beat Bolli <dev+git@drbeat.li> | 2016-12-14 00:31:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-14 09:48:00 -0800 |
commit | fef54f31627542b90f0a2af6c98ebb1e4c309211 (patch) | |
tree | 479d9917ef8a269e488bed6460f4e6c330b11dcb /contrib | |
parent | 3f0a386309402c4a4b07f1c228e61023fbac3566 (diff) | |
download | git-fef54f31627542b90f0a2af6c98ebb1e4c309211.tar.gz git-fef54f31627542b90f0a2af6c98ebb1e4c309211.tar.xz |
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>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/update-unicode/update_unicode.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/contrib/update-unicode/update_unicode.sh b/contrib/update-unicode/update_unicode.sh index 9f1bf31ff..56871a1f4 100755 --- a/contrib/update-unicode/update_unicode.sh +++ b/contrib/update-unicode/update_unicode.sh @@ -8,12 +8,8 @@ cd "$(dirname "$0")" UNICODEWIDTH_H=$(git rev-parse --show-toplevel)/unicode_width.h -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 && ( cd uniset && git checkout 4b186196dd ) |