summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/onigmo/tool/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:18 +0000
commit5da14042f70711ea5cf66e034699730335462f66 (patch)
tree0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/fluent-bit/lib/onigmo/tool/Makefile
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz
netdata-5da14042f70711ea5cf66e034699730335462f66.zip
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/fluent-bit/lib/onigmo/tool/Makefile')
-rw-r--r--src/fluent-bit/lib/onigmo/tool/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/onigmo/tool/Makefile b/src/fluent-bit/lib/onigmo/tool/Makefile
new file mode 100644
index 000000000..cca6e732c
--- /dev/null
+++ b/src/fluent-bit/lib/onigmo/tool/Makefile
@@ -0,0 +1,48 @@
+UNICODE_VERSION = 15.0.0
+EMOJI_VERSION = 15.0.0
+
+PROP_FILES = \
+ $(UNICODE_VERSION)/Blocks.txt \
+ $(UNICODE_VERSION)/DerivedAge.txt \
+ $(UNICODE_VERSION)/DerivedCoreProperties.txt \
+ $(UNICODE_VERSION)/PropertyAliases.txt \
+ $(UNICODE_VERSION)/PropertyValueAliases.txt \
+ $(UNICODE_VERSION)/PropList.txt \
+ $(UNICODE_VERSION)/Scripts.txt \
+ $(UNICODE_VERSION)/UnicodeData.txt \
+ $(UNICODE_VERSION)/auxiliary/GraphemeBreakProperty.txt \
+ $(UNICODE_VERSION)/emoji-data.txt
+
+CASEFOLD_FILES = \
+ $(UNICODE_VERSION)/CaseFolding.txt \
+ $(UNICODE_VERSION)/UnicodeData.txt \
+ $(UNICODE_VERSION)/SpecialCasing.txt
+
+update: update-unicode-header update-jis-header update-doc
+
+update-unicode-header: casefold.h name2ctype.h
+ cp casefold.h name2ctype.h ../enc/unicode
+
+update-jis-header: ../enc/jis/props.kwd
+ cd .. && ./tool/convert-jis-props.sh enc/jis/props.kwd enc/jis/props.h && cd -
+
+update-doc: $(PROP_FILES) update-doc.py
+ $(PYTHON) ./update-doc.py $(UNICODE_VERSION) > ../doc/UnicodeProps.txt
+
+download:
+ ./download-ucd.sh $(UNICODE_VERSION) $(EMOJI_VERSION)
+
+
+casefold.h: $(CASEFOLD_FILES) case-folding.rb
+ $(RUBY) ./case-folding.rb -m $(UNICODE_VERSION) -o casefold.h
+
+name2ctype.h: $(PROP_FILES) enc-unicode.rb
+ $(RUBY) ./enc-unicode.rb --header $(UNICODE_VERSION) > name2ctype.h || rm -f name2ctype.h
+
+
+clean:
+ -rm -f casefold.h name2ctype.kwd name2ctype.h
+ -rm -f $(PROP_FILES) $(CASEFOLD_FILES)
+ -rm -f GraphemeBreakProperty.txt
+ -rmdir $(UNICODE_VERSION)/auxiliary
+ -rmdir $(UNICODE_VERSION)