makeman: replace -\|/ twiddles with dots

It shows progress more clearly, there aren't so many that the output
is excessive, and it's more friendly for things like Cirrus-CI's
logging that print the backspaces as boxes.

Reviewed by:	emaste
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D38990
This commit is contained in:
Brooks Davis 2023-03-08 21:01:17 +00:00
parent 397364e7df
commit cc36164a77

View File

@ -317,8 +317,9 @@ EOF
;;
esac
twiddle >&2
printf "." >&2
done
printf "\n" >&2
cat <<EOF
.El
.Sh FILES
@ -343,13 +344,4 @@ This manual page was autogenerated by
EOF
}
twiddle_pos=0
twiddle()
{
local c0='|' c1='/' c2='-' c3='\'
eval printf '%c\\b' '$c'${twiddle_pos}
twiddle_pos=$(((twiddle_pos+1)%4))
}
main