lkml.org 
[lkml]   [2008]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kernel-doc: set verbose mode via environment
On Wed, 27 Feb 2008 19:11:04 -0800 Andrew Morton wrote:

> On Sun, 24 Feb 2008 17:53:58 -0800 Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
> > From: Randy Dunlap <randy.dunlap@oracle.com>
> >
> > Allow setting environment variable "KERNEL_DOC_VERBOSE=1" to enable
> > verbose mode in scripts/kernel-doc. Useful for getting more
> > info and warnings from kernel-doc.
> >
> > Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> > ---
> > scripts/kernel-doc | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > --- linux-2.6.25-rc3.orig/scripts/kernel-doc
> > +++ linux-2.6.25-rc3/scripts/kernel-doc
> > @@ -247,6 +247,10 @@ my ($function, %function_table,%paramete
> > my ($type,$declaration_name,$return_type);
> > my ($newsection,$newcontents,$prototype,$filelist, $brcount, %source_map);
> >
> > +if (defined($ENV{'KERNEL_DOC_VERBOSE'})) {
> > + $verbose = "$ENV{'KERNEL_DOC_VERBOSE'}";
> > +}
> > +
> > # Generated docbook code is inserted in a template at a point where
> > # docbook v3.1 requires a non-zero sequence of RefEntry's; see:
> > # http://www.oasis-open.org/docbook/documentation/reference/html/refentry.html
>
> Shouldn't this be, err, documented somewhere?

I did think about that. I was still wondering where to add it.

> I'd have expected to obtain this functionality by running `make V=1 foodocs'?

Sam, any thoughts on Makefile passing "-v" to scripts/kernel-doc ?

---
~Randy


\
 
 \ /
  Last update: 2008-02-28 17:33    [W:0.079 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site