source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Reduce the verbosity of makewhatis -t: In the past, it always
@ 2014-04-25 12:13 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-04-25 12:13 UTC (permalink / raw)
  To: source

Log Message:
-----------
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@.

Modified Files:
--------------
    mdocml:
        makewhatis.8
        mandocdb.c

Revision Data
-------------
Index: makewhatis.8
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/makewhatis.8,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lmakewhatis.8 -Lmakewhatis.8 -u -p -r1.1 -r1.2
--- makewhatis.8
+++ 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
Index: mandocdb.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.144 -r1.145
--- mandocdb.c
+++ mandocdb.c
@@ -1996,6 +1996,8 @@ dbadd(struct mpage *mpage, struct mchars
 	mlink = mpage->mlinks;
 
 	if (nodb) {
+		if (0 == debug)
+			return;
 		while (NULL != mlink) {
 			fputs(mlink->name, stdout);
 			if (NULL == mlink->next ||
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-25 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25 12:13 mdocml: Reduce the verbosity of makewhatis -t: In the past, it always schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).