Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pattern substitution in man pages for focal
Ganeti man pages contain patterns that are replaced later via a generated sed script (`autotools/replace_vars.sed`). Examples are the version (`@GANETI_VERSION@`) or local state dir (`@LOCALSTATEDIR@`). Pandoc transforms this `@` into `\@`, which is why some sed commands replace it back (`s/\\@/@/g`). For man pages (`-t man`) with Ubuntu Focal pandoc 2.5 `@` is now transformed into `\[at]`, which leads to `autotools/replace_vars.sed` not matching any more. The solution here replaces the patterns before they are fed to pandoc, avoiding additional replace-back-patterns. As a side effect the existing replace-back-pattern and the intermediate step for `maninputs` (*.in) can be removed. Old steps were: * ./autotools/docpp: *.rst -> *.gen * pandoc -t man/html: *.gen + footer.rst -> *.in * replace_vars.sed: *.in -> man/*.html New steps are: * ./autotools/docpp|replace_vars.sed: *.rst -> *.gen * pandoc -t man/html: *.gen + footer.rst -> man/*.html Signed-off-by: Sascha Lucas <[email protected]>
- Loading branch information