summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-25 12:13:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-25 12:13:15 +0000
commit1d17ea6790b69372d535d740e9db5aa20a30ca98 (patch)
treeb48611619f0bd9b0b5017ec22e3323e3b7b71415
parent104d232fbd10f97f7c8f4879e2957c549a2bcaa7 (diff)
downloadmandoc-1d17ea6790b69372d535d740e9db5aa20a30ca98.tar.gz
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@.
-rw-r--r--makewhatis.82
-rw-r--r--mandocdb.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/makewhatis.8 b/makewhatis.8
index 9b70af15..7b262ea2 100644
--- a/makewhatis.8
+++ b/makewhatis.8
@@ -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 e35501c4..277c00dc 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -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 ||