source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Reduce the verbosity of makewhatis -t: In the past, it always
Date: Fri, 25 Apr 2014 08:13:15 -0400 (EDT)	[thread overview]
Message-ID: <201404251213.s3PCDF5O011397@krisdoz.my.domain> (raw)

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

                 reply	other threads:[~2014-04-25 12:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201404251213.s3PCDF5O011397@krisdoz.my.domain \
    --to=schwarze@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).