mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
The sudo manuals contain conditional to avoid describing system-specific behavior on systems that don't support it. When we convert from mdoc to man format we lose those conditionals, these sed scripts add them back. Changes to the mdoc files can prevent the regexps from matching so they need to be updated periodically.
16 lines
139 B
Sed
16 lines
139 B
Sed
s/^\(.TH .*\)/.nr SL @SEMAN@\
|
|
\1/
|
|
|
|
/^\.TP 6n$/ {
|
|
N
|
|
/^.TP 6n\nsesh$/ {
|
|
i\
|
|
.if \\n(SL \\{\\
|
|
}
|
|
}
|
|
|
|
/^\\fI@sesh_file@\\fR\.$/ {
|
|
a\
|
|
.\\}
|
|
}
|