diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2017-04-20 15:11:16 +0200 |
|---|---|---|
| committer | Gerhard Lazu <gerhard@lazu.co.uk> | 2017-04-25 16:29:53 +0100 |
| commit | d393e390ff48b98176fd8d9a20b4c0ccd49f0e13 (patch) | |
| tree | c3da57f4fbfdb1ee1eaa177960d0f01706af47e5 | |
| parent | f3346e82c401e31ab3ff72fa82d1a7c2b7095b03 (diff) | |
| download | rabbitmq-server-git-d393e390ff48b98176fd8d9a20b4c0ccd49f0e13.tar.gz | |
Makefile: Fix malformed manpages
The generated manpage contains malformed .HP directives:
.HP \w'\fBstop\fR\ 'u \fBstop\fR [\fIpid_file\fR]
The .HP directive takes one argument, the indentation. Thus, the first
line (which is not indented) should be on the next line:
.HP \w'\fBstop\fR\ 'u
\fBstop\fR [\fIpid_file\fR]
Manpages will be converted to mdoc(7) in master so we are sure of
the formatting. The DocBook versions will be dropped. This will also
simplify the build process.
References #1180.
[#143563295]
| -rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -201,6 +201,8 @@ clean-extra-sources: opt='--stringparam man.indent.verbatims=0' ; \ xsltproc --novalid $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \ xmlto -vv -o $(DOCS_DIR) $$opt man $< 2>&1 | (grep -v '^Note: Writing' || :) && \ + awk -F"'u " '/^\.HP / { print $$1; print $$2; next; } { print; }' "$@" > "$@.tmp" && \ + mv "$@.tmp" "$@" && \ test -f $@ && \ rm $<.tmp |
