aboutsummaryrefslogtreecommitdiff
path: root/gen/data-files
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-11 21:20:31 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-11 21:20:37 +0200
commit4be9da8d2d4f428de60dd7af874a28630d33b542 (patch)
tree8e7cfc5c9814f350ef1569bd3b21dfdb660f42b7 /gen/data-files
parenta1749aa9bbe5abc10bde30b2bf1210091e0ee2d4 (diff)
Remove .txt from Unicode data files
Diffstat (limited to 'gen/data-files')
-rwxr-xr-xgen/data-files34
1 files changed, 17 insertions, 17 deletions
diff --git a/gen/data-files b/gen/data-files
index 550ef82..3deb623 100755
--- a/gen/data-files
+++ b/gen/data-files
@@ -6,25 +6,25 @@ mkdir -p data
readonly BASE=https://www.unicode.org/Public/UCD/latest/ucd
-readonly URLS='
-auxiliary/GraphemeBreakProperty.txt
-BidiBrackets.txt
-DerivedCoreProperties.txt
-DerivedNormalizationProps.txt
-emoji/emoji-data.txt
-extracted/DerivedBinaryProperties.txt
-extracted/DerivedDecompositionType.txt
-extracted/DerivedEastAsianWidth.txt
-extracted/DerivedLineBreak.txt
-extracted/DerivedNumericType.txt
-extracted/DerivedNumericValues.txt
-PropList.txt
-UnicodeData.txt
+readonly PATHS='
+auxiliary/GraphemeBreakProperty
+BidiBrackets
+DerivedCoreProperties
+DerivedNormalizationProps
+emoji/emoji-data
+extracted/DerivedBinaryProperties
+extracted/DerivedDecompositionType
+extracted/DerivedEastAsianWidth
+extracted/DerivedLineBreak
+extracted/DerivedNumericType
+extracted/DerivedNumericValues
+PropList
+UnicodeData
'
-for url in $URLS
+for path in $PATHS
do
- name="data/${url##*/}"
- test -f "$name" || wget -q "$BASE/$url" -O "$name" &
+ name="data/${path##*/}"
+ test -f "$name" || wget -q "$BASE/$path.txt" -O "$name" &
done
wait