man-page-html-index-20080630
authorRuss Allbery <rra@stanford.edu>
Mon, 30 Jun 2008 23:35:18 +0000 (23:35 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 30 Jun 2008 23:35:18 +0000 (23:35 +0000)
LICENSE BSD

Use the correct subcommand name (fs getacl instead of fs_getacl) on the
HTML index page, even though we have to use the underscore in the NAME
section of the actual POD documentation.

doc/man-pages/generate-html

index 11fdad1..9bde41b 100755 (executable)
@@ -100,6 +100,7 @@ sub scan_names {
             unless ($name) {
                 warn "$dir/$file: cannot find NAME section, skipping\n";
             }
+            $name =~ s/^(backup|bos|fs|fstrace|kas|pts|symlink|uss|vos)_/$1 /;
             my $page = $file;
             $page =~ s/\.pod$//;
             push (@index, [ $section, $name, $page, $desc ]);