diff options
author | markm <markm@FreeBSD.org> | 2002-05-16 10:09:28 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-05-16 10:09:28 +0000 |
commit | f56e05005c751822074f0a22aa9a98d2eb189924 (patch) | |
tree | e28fc632241c9d248069d45dd9ab2a41fa64868f /contrib/perl5/pod/splitman | |
parent | 344ddc14973a1519f100f54051dcb068069fe43c (diff) | |
download | FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.zip FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.tar.gz |
Perl is no longer in base. Long live the port!
Diffstat (limited to 'contrib/perl5/pod/splitman')
-rwxr-xr-x | contrib/perl5/pod/splitman | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/contrib/perl5/pod/splitman b/contrib/perl5/pod/splitman deleted file mode 100755 index 9fe404a..0000000 --- a/contrib/perl5/pod/splitman +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/perl - -while (<>) { - if ($seqno = 1 .. /^\.TH/) { - unless ($seqno =~ /e/i) { - $header .= $_; - } - next; - } - - if ( /^\.Ip\s*"(.*)"\s*\d+$/) { - $desking = 0; - $desc = $1; - if (name($desc) ne $myname) { - $myname = name($desc); - print $myname, "\n"; - open(MAN, "> $myname.3pl"); - print MAN <<EOALL; -$header -.TH $myname 3PL "\\*(RP" -.SH NAME -$myname -.SH SYNOPSIS -.B $desc -EOALL - } else { - print MAN <<EOMORE; -.br -.ti +3n -or -.br -.B $desc -EOMORE - } - next; - } - unless ($desking) { - print MAN ".SH DESCRIPTION\n"; - $desking = 1; - } - print MAN; -} - -sub name { - ($_[0] =~ /(\w+)/)[0]; -} |