From b8d4aa9c336304ccf4c58c770065289b076c37a7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 1 Apr 2024 16:02:51 +0200 Subject: Simplify script --- gen/data-files | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gen/data-files b/gen/data-files index 69ad9ba..c93551d 100755 --- a/gen/data-files +++ b/gen/data-files @@ -4,15 +4,18 @@ cd "${0%/*}/.." mkdir -p data +readonly BASE=https://www.unicode.org/Public/UCD/latest/ucd + readonly URLS=' -https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakProperty.txt -https://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt -https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt +auxiliary/GraphemeBreakProperty.txt +DerivedCoreProperties.txt +emoji/emoji-data.txt +UnicodeData.txt ' for url in $URLS do name="data/${url##*/}" - test -f "$name" || wget -q "$url" -O "$name" & + test -f "$name" || wget -q "$BASE/$url" -O "$name" & done wait -- cgit v1.2.3