From: Andrew Deason Date: Fri, 12 Nov 2010 16:32:57 +0000 (-0600) Subject: doc: Do not process .in files for html X-Git-Tag: upstream/1.8.0_pre1^2~4495 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d37679f4fdb1b10284046c05d2c7b110b37a4120;p=packages%2Fo%2Fopenafs.git doc: Do not process .in files for html 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 Reviewed-by: Derrick Brashear --- diff --git a/doc/man-pages/generate-html b/doc/man-pages/generate-html index 45f2fbd28..13fdff59f 100755 --- a/doc/man-pages/generate-html +++ b/doc/man-pages/generate-html @@ -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 $_;