From cf0d7fea04923b39ccae0e9083c525b91642f49d Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Sat, 31 Jul 2010 04:00:41 -0400 Subject: [PATCH] Skip over 'fragments' directory when scanning for PODs The generate-html script scans the directories to compile a list of POD files. The list of candidates include the 'fragments' directory, which causes an error when the script attempts to open it as a file. Change-Id: If1208561f58f869ccba60f4a263bee5200dad1ed Reviewed-on: http://gerrit.openafs.org/2494 Reviewed-by: Jeffrey Altman Reviewed-by: Russ Allbery Tested-by: Russ Allbery --- doc/man-pages/generate-html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/man-pages/generate-html b/doc/man-pages/generate-html index e905231..45f2fbd 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/ } readdir D) { + for my $file (sort grep { !/^\./ && !/CVS/ && !/fragments/ } readdir D) { open (F, "$dir/$file") or die "Cannot open $dir/$file: $!\n"; my ($name, $desc); local $_; -- 1.9.4