4
%tags = ( 'a', 'BA', 'c', 'LC', 'r', 'SL', 't', 'SL');
8
# Initialize the numeric register we use for conditionals
10
$_ = ".nr SL \@SEMAN\@\n.nr BA \@BAMAN\@\n.nr LC \@LCMAN\@\n.nr PT \@password_timeout\@\n.\\\"\n$_";
15
if (/^\.IP.*-([acrt])/) {
16
$_ = ".if \\n($tags{$1} \\{\\\n$_";
18
} elsif ($cond && /^\.(Sh|SS|IP|PP)/) {
23
if (/-a.*auth_type/) {
24
$_ = ".if \\n($tags{'a'} $_";
25
} elsif (/(-c.*class.*\||login_cap)/) {
26
$_ = ".if \\n($tags{'c'} $_";
27
} elsif (/-r.*role.*-t.*type/) {
28
$_ = ".if \\n($tags{'r'} $_";
31
# Fix up broken pod2man formatting of F<@foo@/bar>
32
s/\\fI\\f(\(C)?I\@([^\@]*)\\fI\@/\\fI\@$2\@/g;
34
# Try to deal sensibly with password_timeout being set to 0 by default
35
s/([^ ]*\@password_timeout\@[^ ]* minutes.$)/\n.ie \\n(PT $1\n.el unlimited./;