build(terminfo): include user capabilities in comments (#28066)

Add -x flag to infocmp, so that comments match the content.
This commit is contained in:
zeertzjq 2024-03-28 10:23:07 +08:00 committed by GitHub
parent a89ce89742
commit 981301d11f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 548 additions and 1 deletions

View File

@ -77,7 +77,7 @@ for term in $sorted_terms; do
continue
fi
printf '\n'
infocmp -L -1 -A "$db" "$term" | sed -e '1d' -e 's#^#// #' | tr '\t' ' '
infocmp -L -x -1 -A "$db" "$term" | sed -e '1d' -e 's#^#// #' | tr '\t' ' '
printf 'static const int8_t %s[] = {\n' "${entries[$term]}"
printf ' '
od -v -t d1 < "$path" | cut -c9- | xargs | tr ' ' ','

File diff suppressed because one or more lines are too long