File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,19 @@ fn manpages(sh: &Shell) -> Result<()> {
104
104
"cargo run --features=docgen -- man --directory target/man"
105
105
)
106
106
. run ( ) ?;
107
+
108
+ // Post-process hack to unconditionally define the roff string for
109
+ // apostrophe, See:
110
+ // https://github.com/bootc-dev/bootc/pull/1385#discussion_r2172661872
111
+ for page in std:: fs:: read_dir ( sh. current_dir ( ) . join ( "target/man" ) ) ? {
112
+ let page = page?;
113
+ let path = page. path ( ) ;
114
+ let groffsub = r"1i .ds Aq \\(aq" ;
115
+ let dropif = r"/\.g \.ds Aq/d" ;
116
+ let dropelse = r"/.el .ds Aq '/d" ;
117
+ cmd ! ( sh, "sed -i -e {groffsub} -e {dropif} -e {dropelse} {path}" ) . run ( ) ?;
118
+ }
119
+
107
120
// We also have some man pages for the systemd units which are canonically
108
121
// maintained as markdown; convert them to man pages.
109
122
let extradir = sh. current_dir ( ) . join ( "docs/src/man-md" ) ;
You can’t perform that action at this time.
0 commit comments