Files
sudo/sudoers.man.pl
Todd C. Miller 2b4e67ff8e Substitute in comment characters for lines partaining to login.conf,
BSD auth and SELinux and only enable them if pertinent.
2008-02-18 15:53:33 +00:00

24 lines
393 B
Perl

#!/usr/bin/perl -p
BEGIN {
$t = undef;
}
if (/^\./) {
if (/^\.I[PX].*use_loginclass/) {
$t = '@LCMAN@';
} elsif (/^\.I[PX].*(role|type)/) {
$t = '@SEMAN@';
} else {
$t = undef;
}
}
# Fix up broken pod2man formatting of F<@foo@/bar>
s/\\fI\\f(\(C)?I\@([^\@]*)\\fI\@/\\fI\@$2\@/g;
# Comment out Compile-time-specific lines in DESCRIPTION
if ($t) {
$_ = $t . $_;
}