2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 13:28:10 +00:00

Substitute in comment characters for lines partaining to login.conf,

BSD auth and SELinux and only enable them if pertinent.
This commit is contained in:
Todd C. Miller 2008-02-18 15:53:33 +00:00
parent ef16f80a32
commit 2b4e67ff8e

23
sudoers.man.pl Normal file
View File

@ -0,0 +1,23 @@
#!/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 . $_;
}