From 1ae7426d9fae79fc06cd0c737b91ababea935cd3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 25 Apr 2014 12:13:15 +0000 Subject: [PATCH] Reduce the verbosity of makewhatis -t: In the past, it always showed the title lines of the files processed. Now, it only shows them when called with -D. That is better because pkg_create calls makewhatis -t. It is also more consistent with -D behaviour in non- -t modes. Issue reported by ajacoutot@; ok espie@ ajacoutot@ jasper@. --- makewhatis.8 | 6 +++--- mandocdb.c | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/makewhatis.8 b/makewhatis.8 index beb2442f..02c4cc35 100644 --- a/makewhatis.8 +++ b/makewhatis.8 @@ -1,4 +1,4 @@ -.\" $Id: makewhatis.8,v 1.1 2014/04/18 10:30:37 schwarze Exp $ +.\" $Id: makewhatis.8,v 1.2 2014/04/25 12:13:15 schwarze Exp $ .\" .\" Copyright (c) 2011, 2012 Kristaps Dzonsons .\" Copyright (c) 2011, 2012 Ingo Schwarze @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 18 2014 $ +.Dd $Mdocdate: April 25 2014 $ .Dt MAKEWHATIS 8 .Os .Sh NAME @@ -41,7 +41,7 @@ .Fl u Ar dir .Op Ar .Nm -.Op Fl Q +.Op Fl DQ .Fl t Ar .Sh DESCRIPTION The diff --git a/mandocdb.c b/mandocdb.c index 4e4c37c6..71a233da 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.144 2014/04/23 21:06:41 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.145 2014/04/25 12:13:15 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -1996,6 +1996,8 @@ dbadd(struct mpage *mpage, struct mchars *mc) mlink = mpage->mlinks; if (nodb) { + if (0 == debug) + return; while (NULL != mlink) { fputs(mlink->name, stdout); if (NULL == mlink->next || -- 2.47.1