]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-man-page-html-index-underscores-20080713
authorRuss Allbery <rra@stanford.edu>
Mon, 14 Jul 2008 03:30:55 +0000 (03:30 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 14 Jul 2008 03:30:55 +0000 (03:30 +0000)
LICENSE BSD

Remove underscores from the anchor in the index for all section 5 manual
pages.

(cherry picked from commit 6a322e4eb7e79896e3322e0ace16a6ed99668162)

doc/man-pages/generate-html

index 610a7db03ca59da8cfba537ee071afe641da5f9b..e905231a9c591f39bcea9a18712fea0d5392013f 100755 (executable)
@@ -122,6 +122,9 @@ sub scan_names {
                 warn "$dir/$file: cannot find NAME section, skipping\n";
             }
             $name =~ s/^(backup|bos|fs|fstrace|kas|pts|symlink|uss|vos)_/$1 /;
+            if ($section eq '5') {
+                $name =~ s/_/ /g;
+            }
             my $page = $file;
             $page =~ s/\.pod$//;
             push (@index, [ $section, $name, $page, $desc ]);