From 4f93f935dc7a981ca073a322425c3f5929ffb644 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 21 Jan 2024 03:03:58 +0100 Subject: Support line- & column-based match locations --- vendor/librune/gen/gbrk | 115 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100755 vendor/librune/gen/gbrk (limited to 'vendor/librune/gen/gbrk') diff --git a/vendor/librune/gen/gbrk b/vendor/librune/gen/gbrk new file mode 100755 index 0000000..5cbd87f --- /dev/null +++ b/vendor/librune/gen/gbrk @@ -0,0 +1,115 @@ +#!/bin/sh + +cache() +{ + name="/tmp/librune/$(basename "$1")" + if test ! -f "$name" + then + mkdir -p /tmp/librune + wget -q "$1" -O "$name" + fi +} + +set -e +cd "${0%/*}/.." +exec >lib/internal/gbrk_lookup.h + +readonly URL1='https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakProperty.txt' +readonly URL2='https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt' +readonly URL3='https://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt' + +cache "$URL1" & +cache "$URL2" & +cache "$URL3" & +wait + +cat <