]> granicus.if.org Git - sudo/commitdiff
Add conditional for sesh path in sudo.conf manual.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 27 Aug 2019 14:09:28 +0000 (08:09 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 27 Aug 2019 14:09:28 +0000 (08:09 -0600)
MANIFEST
doc/sudo.conf.man.in.sed [new file with mode: 0644]

index ba9a0036db4ba3f0daa9a93301844b2dc241a4a4..e9b8ff2dd37bb2bc02c9ef968196fdfd501bcd44 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -29,6 +29,7 @@ doc/schema.OpenLDAP
 doc/schema.iPlanet
 doc/schema.olcSudo
 doc/sudo.conf.man.in
+doc/sudo.conf.man.in.sed
 doc/sudo.conf.mdoc.in
 doc/sudo.man.in
 doc/sudo.man.in.sed
diff --git a/doc/sudo.conf.man.in.sed b/doc/sudo.conf.man.in.sed
new file mode 100644 (file)
index 0000000..2534bc8
--- /dev/null
@@ -0,0 +1,15 @@
+s/^\(.TH .*\)/.nr SL @SEMAN@\
+\1/
+
+/^\.TP 10n$/ {
+       N
+       /^.TP 10n\nsesh$/ {
+               i\
+.if \\n(SL \\{\\
+       }
+}
+
+/^\\fI@sesh_file@\\fR\.$/ {
+       a\
+.\\}
+}