The compiled terminfo is reduced to a single artifact that CI checks against its text source, failing on any drift. Tests load the embedded entry and cover an XTGETTCAP response.
12 lines
352 B
Bash
Executable File
12 lines
352 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Regenerate the compiled terminfo database from its text source.
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
# tic lays entries out as <dir>/<first-letter-of-name>/<name>,
|
|
# so this writes termwiz/data/w/wezterm.
|
|
tic -x -o "$repo_root/termwiz/data" "$repo_root/termwiz/data/wezterm.terminfo"
|