summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/onigmo/tool/download-ucd.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /fluent-bit/lib/onigmo/tool/download-ucd.sh
parentInitial commit. (diff)
downloadnetdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.tar.xz
netdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xfluent-bit/lib/onigmo/tool/download-ucd.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/fluent-bit/lib/onigmo/tool/download-ucd.sh b/fluent-bit/lib/onigmo/tool/download-ucd.sh
new file mode 100755
index 00000000..b6b46581
--- /dev/null
+++ b/fluent-bit/lib/onigmo/tool/download-ucd.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+files='Blocks.txt CaseFolding.txt DerivedAge.txt DerivedCoreProperties.txt PropertyAliases.txt PropertyValueAliases.txt PropList.txt Scripts.txt SpecialCasing.txt UnicodeData.txt auxiliary/GraphemeBreakProperty.txt'
+emoji_files='emoji-data.txt'
+
+if [ -z $1 ] || [ -z $2 ]; then
+ echo "usage: $0 UNICODE_VERSION EMOJI_VERSION"
+ exit 1
+fi
+UNICODE_VERSION=$1
+EMOJI_VERSION=$2
+
+# remove old files
+if [ -d $UNICODE_VERSION ]; then
+ cd $UNICODE_VERSION
+ rm -f $files $emoji_files
+ rm -f GraphemeBreakProperty.txt
+ cd -
+fi
+
+mkdir -p $UNICODE_VERSION/auxiliary
+cd $UNICODE_VERSION
+
+for i in $files; do
+ echo http://www.unicode.org/Public/${UNICODE_VERSION}/ucd/$i
+done | xargs wget
+mv GraphemeBreakProperty.txt auxiliary
+for i in $emoji_files; do
+ echo http://www.unicode.org/Public/${EMOJI_VERSION}/ucd/emoji/$i
+done | xargs wget