mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
update_terminfo.sh: Use printf instead of echo
This commit is contained in:
parent
e85b911f02
commit
959df5d8a5
@ -76,15 +76,16 @@ EOF
|
|||||||
|
|
||||||
for term in $sorted_terms; do
|
for term in $sorted_terms; do
|
||||||
path="$(find "$db" -name "$term")"
|
path="$(find "$db" -name "$term")"
|
||||||
if [[ -z $path ]]; then
|
if [ -z "$path" ]; then
|
||||||
echo "Not found: $term. Skipping." 1>&2
|
>&2 echo "Not found: $term. Skipping."
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo
|
printf '\n'
|
||||||
infocmp -L -1 -A "$db" "$term" | sed -e '1d' -e 's#^#// #' | tr '\t' ' '
|
infocmp -L -1 -A "$db" "$term" | sed -e '1d' -e 's#^#// #' | tr '\t' ' '
|
||||||
echo "static const int8_t ${entries[$term]}[] = {"
|
printf 'static const int8_t %s[] = {\n' "${entries[$term]}"
|
||||||
echo -n " "; od -v -t d1 < "$path" | cut -c9- | xargs | tr ' ' ','
|
printf ' '
|
||||||
echo "};"
|
od -v -t d1 < "$path" | cut -c9- | xargs | tr ' ' ','
|
||||||
|
printf '};\n'
|
||||||
done >> "$target"
|
done >> "$target"
|
||||||
|
|
||||||
cat >> "$target" <<EOF
|
cat >> "$target" <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user