File: gen_unicode_printability_module.sh

package info (click to toggle)
luacheck 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,704 kB
  • sloc: sh: 106; makefile: 96; python: 35
file content (18 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
set -eu
set -o pipefail

# Generates luacheck.unicode_printability_boundaries module given Unicode version.
# Should be executed from root Luacheck directory.

url="https://www.unicode.org/Public/$1/ucd/UnicodeData.txt"
cache="scripts/UnicodeData-$1.txt"

if [ ! -e "$cache" ]; then
    wget -O "$cache" "$url"
fi

(
    echo "-- Autogenerated using data from $url";
    lua scripts/unicode_data_to_printability_module.lua < "$cache"
) > src/luacheck/unicode_printability_boundaries.lua