doc: Do not process .in files for html
authorAndrew Deason <adeason@sinenomine.net>
Fri, 12 Nov 2010 16:32:57 +0000 (10:32 -0600)
committerDerrick Brashear <shadow@dementia.org>
Fri, 19 Nov 2010 16:52:53 +0000 (08:52 -0800)
We do not want to process .pod.in files when generating HTML versions
of the man pages. Change the filename filtering logic to only accept
.pod files, so we'll also skip over all other stuff we don't want,
like CVS or fragments directories.

Change-Id: Ic7da67dd5297aa52a67a8a0dc0b9cc7904cfa2b4
Reviewed-on: http://gerrit.openafs.org/3302
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

doc/man-pages/generate-html

index 45f2fbd..13fdff5 100755 (executable)
@@ -109,7 +109,7 @@ sub scan_names {
         my $section = $dir;
         $section =~ s/^pod//;
         opendir (D, $dir) or die "Cannot open $dir: $!\n";
-        for my $file (sort grep { !/^\./ && !/CVS/ && !/fragments/ } readdir D) {
+        for my $file (sort grep { !/^\./ && /\.pod$/ } readdir D) {
             open (F, "$dir/$file") or die "Cannot open $dir/$file: $!\n";
             my ($name, $desc);
             local $_;