X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fpod2man.PL;h=86426418de836522861f10e1321afc92c4c383c3;hb=888aee597441568824c1835285c8012bab253529;hp=5a1deeaed38d3e4d7eb5601295f132bba73669fe;hpb=59548ecaeaf22737b5c8a75235f5e142c16de75d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/pod2man.PL b/pod/pod2man.PL index 5a1deea..8642641 100644 --- a/pod/pod2man.PL +++ b/pod/pod2man.PL @@ -36,7 +36,7 @@ $Config{startperl} print OUT <<'!NO!SUBS!'; # pod2man -- Convert POD data to formatted *roff input. -# $Id: pod2man.PL,v 1.7 2001/10/20 08:24:15 eagle Exp $ +# $Id: pod2man.PL,v 1.8 2001/11/05 04:55:47 eagle Exp $ # # Copyright 1999, 2000, 2001 by Russ Allbery # @@ -66,8 +66,8 @@ my %options; Getopt::Long::config ('bundling_override'); GetOptions (\%options, 'section|s=s', 'release|r=s', 'center|c=s', 'date|d=s', 'fixed=s', 'fixedbold=s', 'fixeditalic=s', - 'fixedbolditalic=s', 'official|o', 'quotes|q=s', 'lax|l', - 'help|h', 'verbose|v') or exit 1; + 'fixedbolditalic=s', 'name|n=s', 'official|o', 'quotes|q=s', + 'lax|l', 'help|h', 'verbose|v') or exit 1; pod2usage (0) if $options{help}; # Official sets --center, but don't override things explicitly set. @@ -100,8 +100,9 @@ pod2man - Convert POD data to formatted *roff input pod2man [B<--section>=I] [B<--release>=I] [B<--center>=I] [B<--date>=I] [B<--fixed>=I] [B<--fixedbold>=I] [B<--fixeditalic>=I] -[B<--fixedbolditalic>=I] [B<--official>] [B<--lax>] -[B<--quotes>=I] [B<--verbose>] [I [I] ...] +[B<--fixedbolditalic>=I] [B<--name>=I] [B<--official>] +[B<--lax>] [B<--quotes>=I] [B<--verbose>] +[I [I] ...] pod2man B<--help> @@ -185,6 +186,19 @@ Print out usage information. Don't complain when required sections are missing. Not currently used, as POD checking functionality is not yet implemented in Pod::Man. +=item B<-n> I, B<--name>=I + +Set the name of the manual page to I. Without this option, the manual +name is set to the uppercased base name of the file being converted unless +the manual section is 3, in which case the path is parsed to see if it is a +Perl module path. If it is, a path like C<.../lib/Pod/Man.pm> is converted +into a name like C. This option, if given, overrides any +automatic determination of the name. + +Note that this option is probably not useful when converting multiple POD +files at once. The convention for Unix man pages for commands is for the +man page title to be in all-uppercase even if the command isn't. + =item B<-o>, B<--official> Set the default header to indicate that this page is part of the standard