Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2023 21:01:27 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: cc36164a77f9 - main - makeman: replace -\|/ twiddles with dots
Message-ID:  <202303082101.328L1ReM099696@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=cc36164a77f9a2f40e0ac103c9c3154aacca6d29

commit cc36164a77f9a2f40e0ac103c9c3154aacca6d29
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-03-08 21:01:17 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-03-08 21:01:17 +0000

    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
---
 tools/build/options/makeman | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/tools/build/options/makeman b/tools/build/options/makeman
index 69dd3a46c201..5a8b207b228a 100755
--- a/tools/build/options/makeman
+++ b/tools/build/options/makeman
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303082101.328L1ReM099696>