Mercurial > hg > octave-jordi
changeset 18937:18e46285a608
Skip private functions when building DOCSTRING (bug #42791).
* scripts/mkdoc.pl: the DOCSTRING being built are used as cache for functions
such as 'lookfor()', even if they are private functions. This change skips
those, effectively removing them from lookfor results.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Thu, 17 Jul 2014 16:25:30 +0100 |
parents | 961ecaf9fb57 |
children | b0960d4afe5f |
files | scripts/mkdoc.pl |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/mkdoc.pl +++ b/scripts/mkdoc.pl @@ -21,6 +21,7 @@ ## Expecting arguments in this order: ## ## SRCDIR SRCDIR-FILES ... -- LOCAL-FILES ... +use File::Spec; unless (@ARGV >= 2) { die "Usage: $0 srcdir m_filename1 ..." ; } @@ -43,6 +44,7 @@ } $full_fname = $srcdir . $m_fname; + next MFILE if ((File::Spec->splitdir($full_fname))[-2] eq "private"); next MFILE unless ( $full_fname =~ m{(.*)/(@|)([^/]*)/(.*)\.m} ); if ($2) { $fcn = "$2$3/$4"; }