diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-25 12:13:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-25 12:13:15 +0000 |
commit | 1d17ea6790b69372d535d740e9db5aa20a30ca98 (patch) | |
tree | b48611619f0bd9b0b5017ec22e3323e3b7b71415 | |
parent | 104d232fbd10f97f7c8f4879e2957c549a2bcaa7 (diff) | |
download | mandoc-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.8 | 2 | ||||
-rw-r--r-- | mandocdb.c | 2 |
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 @@ -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 || |